{"id":7,"date":"2008-05-21T16:03:34","date_gmt":"2008-05-21T12:03:34","guid":{"rendered":"http:\/\/www.unixpin.com\/wordpress\/?p=7"},"modified":"2008-08-14T17:21:28","modified_gmt":"2008-08-14T13:21:28","slug":"remote-backup","status":"publish","type":"post","link":"https:\/\/www.unixpin.com\/?p=7","title":{"rendered":"\u041a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432?"},"content":{"rendered":"<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443.<\/p>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f tar-\u043e\u043c:<br \/>\n<!--more--> <\/p>\n<pre>$ tar cf - \/export\/home\/user | \\\r\n ssh user@remore.server.ru  'cat &gt; \/arch\/backup.tar'<\/pre>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre>$ ssh user@remore.server.ru -c 'cat \/arch\/backup.tar' | tar xf -<\/pre>\n<p>\u0422\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 \u043a\u043e\u043c\u043f\u0440\u0435\u0441\u0441\u0438\u0435\u0439:<\/p>\n<pre>$ tar cf - \/export\/home\/user | gzip | \\<\/pre>\n<pre> ssh user@remore.server.ru  'cat &gt;  \/arch\/backup.tar.gz'<\/pre>\n<pre>$ ssh user@remore.server.ru  'cat \/arch\/backup.tar.gz' | \\<\/pre>\n<pre> gunzip | tar xf -<\/pre>\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043b\u0435\u043d\u0442\u043e\u0447\u043a\u0443  \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b:<\/p>\n<pre># ufsdump 0f - \/ | \\ \r\n ssh user@remore.server.ru 'dd of=\/dev\/rmt\/1cbn bs=1024'<\/pre>\n<pre># cd \/var\/tmp\r\n# ssh user@remore.server.ru 'dd if=\/dev\/rmt\/1cbn bs=1024' | \\\r\n ufsrestore rvf -<\/pre>\n<p>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b:<\/p>\n<pre># cd \/var\/tmp<\/pre>\n<pre># ssh user@remore.server.ru'dd if=\/dev\/rmt\/1b bs=1024' | \\<\/pre>\n<pre>ufsrestore xvf - .\/etc\/passwd .\/etc\/shadow<\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u043b\u0435\u043d\u0442\u0435:<\/p>\n<pre># ssh user@remore.server.ru 'dd if=\/dev\/rmt\/1b bs=1024' | \\<\/pre>\n<pre>ufsrestore tf -<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435, \u0433\u0434\u0435 \u043b\u0435\u043d\u0442\u043e\u0447\u043d\u044b\u0439 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c  \u0435\u0441\u0442\u044c:<\/p>\n<pre># ufsrestore tf \/dev\/rmt\/1b<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u043c \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443. \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f tar-\u043e\u043c:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,24,25,4,93],"tags":[28,7],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-shell","category-hpux","category-linux","category-solaris","category-unix-tru64","tag-programming-shell","tag-unix"],"_links":{"self":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unixpin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}