{"id":150,"date":"2018-05-18T14:19:37","date_gmt":"2018-05-18T11:19:37","guid":{"rendered":"http:\/\/itbru.ru\/?p=150"},"modified":"2018-09-03T14:57:55","modified_gmt":"2018-09-03T11:57:55","slug":"linux-webdav-via-mount-unit","status":"publish","type":"post","link":"https:\/\/itbru.ru\/index.php\/2018\/05\/18\/linux-webdav-via-mount-unit\/","title":{"rendered":"Linux. WebDAV \u0447\u0435\u0440\u0435\u0437 mount-\u044e\u043d\u0438\u0442\u044b."},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430:<br \/>\n\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u042f\u043d\u0434\u0435\u043a\u0441 \u0434\u0438\u0441\u043a \u043a Linux \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0447\u0435\u0440\u0435\u0437 WebDAV \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f mount-\u044e\u043d\u0438\u0442\u044b.<br \/>\n<!--more--><br \/>\n\u041f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c Fuse \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d davfs2.<br \/>\n\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u042f.\u0414\u0438\u0441\u043a\u0443. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 \/etc\/davfs2\/secrets<\/p>\n<pre class=\"lang:default decode:true \">https:\/\/webdav.yandex.ru       %\u0412\u0430\u0448\u041b\u043e\u0433\u0438\u043d% %\u0412\u0430\u0448\u041f\u0430\u0440\u043e\u043b\u044c%<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0430\u043f\u043a\u0443 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u043c\u0430\u0443\u043d\u0442\u0438\u0442\u044c \u043d\u0430\u0448 \u0434\u0438\u0441\u043a:<\/p>\n<pre class=\"lang:default decode:true \">mkdir \/yandex\/<\/pre>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044e\u043d\u0438\u0442. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/systemd\/system\/yandex.mount \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c:<br \/>\n<strong>\u0412\u0430\u0436\u043d\u043e: \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u043f\u0430\u043f\u043a\u0438 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u043c\u0430\u0443\u043d\u0442\u0438\u0442\u044c<\/strong><\/p>\n<pre class=\"lang:default decode:true \">[Unit]\r\nDescription=Yandex WebDAV\r\nAfter=network-online.target\r\nWants=network-online.target\r\n\r\n[Mount]\r\nWhat=https:\/\/webdav.yandex.ru\r\nWhere= \/yandex\r\nOptions=noauto,user,uid=root,gid=root\r\nType=davfs\r\nTimeoutSec=60\r\n\r\n[Install]\r\nWantedBy=remote-fs.target\r\n<\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c. \u0414\u0435\u043b\u0430\u0435\u043c daemon-reload, enable \u0438 start:<\/p>\n<pre class=\"lang:default decode:true \">systemctl daemon-reload\r\nsystemctl enable yandex.mount\r\nsystemctl start yandex.mount<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430: \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u042f\u043d\u0434\u0435\u043a\u0441 \u0434\u0438\u0441\u043a \u043a Linux \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0447\u0435\u0440\u0435\u0437 WebDAV \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f mount-\u044e\u043d\u0438\u0442\u044b.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":2,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":220,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/posts\/150\/revisions\/220"}],"wp:attachment":[{"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itbru.ru\/index.php\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}