{"id":119,"date":"2020-03-23T18:36:19","date_gmt":"2020-03-23T18:36:19","guid":{"rendered":"http:\/\/metajack.org\/blog\/?p=119"},"modified":"2020-03-23T20:53:10","modified_gmt":"2020-03-23T20:53:10","slug":"rsync-with-hetzner-storage-boxes","status":"publish","type":"post","link":"https:\/\/metajack.org\/blog\/2020\/03\/23\/rsync-with-hetzner-storage-boxes\/","title":{"rendered":"Rsync with Hetzner storage boxes"},"content":{"rendered":"\n<p><em>In all examples, replace u2xxxxx-sub5 and u2xxxxx.your-storagebox.de with the names of your user and storage box.<\/em><\/p>\n\n\n\n<p>First, make sure &#8220;external reachability&#8221; and &#8220;ssh&#8221; are enabled.<\/p>\n\n\n\n<p>You can make the base directory easily by ftp&#8217;ing in first and creating the directory. Next, open the web interface and set the base directory for the sub-account to the one you just created.<\/p>\n\n\n\n<p>To use rsync a directory to the storage box:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rsync -aze 'ssh -p 23' directory-name-here u2xxxxx-sub5@u2xxxxx.your-storagebox.de:<\/code><\/pre>\n\n\n\n<p>To use rsync a directory from the storage box into the current directory (signified by a single dot)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rsync -aze 'ssh -p 23' u2xxxxx-sub5@u2xxxxx.your-storagebox.de: .<\/code><\/pre>\n\n\n\n<p>You can also connect via ftp.<\/p>\n\n\n\n<p>Problems:<\/p>\n\n\n\n<p>Because rsync is not running as root on the remote server you cannot preserve all file ownership and symlinks (?), etc. Add the option :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>--fake-super<\/code><\/pre>\n\n\n\n<p>to store user and permission values.<\/p>\n\n\n\n<p>You can also use borg backup over rsync to solve this problem. I use it for some projects but it is not ideal for all uses.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In all examples, replace u2xxxxx-sub5 and u2xxxxx.your-storagebox.de with the names of your user and storage box. First, make sure &#8220;external reachability&#8221; and &#8220;ssh&#8221; are enabled. You can make the base directory easily by ftp&#8217;ing in first and creating the directory. Next, open the web interface and set the base directory for the sub-account to the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/metajack.org\/blog\/2020\/03\/23\/rsync-with-hetzner-storage-boxes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Rsync with Hetzner storage boxes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":3,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}