{"id":126,"date":"2019-02-20T11:48:29","date_gmt":"2019-02-20T17:48:29","guid":{"rendered":"https:\/\/blog.mctechnologies.net\/?p=126"},"modified":"2019-02-20T11:48:29","modified_gmt":"2019-02-20T17:48:29","slug":"backup-freenas-to-another-local-freenas-using-rsync","status":"publish","type":"post","link":"https:\/\/blog.mctechnologies.net\/?p=126","title":{"rendered":"Backup Freenas to another Local Freenas using rsync"},"content":{"rendered":"\n<p>Systems:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Freenas1 (Freenas 11.2U2) &#8211; Source<\/li><li>Freenas2 (Freenas 11.2U2)  &#8211; Destination<\/li><\/ul>\n\n\n\n<p>On the destination system, create a Dataset for the files that you will be receiving, for me it was going to reside on \/mnt\/Backup1\/Shares.  To create a Dataset, go to Storage -> Pools and create them from there.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"600\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-3.png\" alt=\"\" class=\"wp-image-127\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-3.png 946w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-3-300x190.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-3-768x487.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-3-80x51.png 80w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p>On both servers, make sure the rsync service is started and will start on boot.  To do this, on both servers, go to Services on the left hand menu, and start the service, and check the box to &#8220;Start Automatically&#8221;.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"596\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-4.png\" alt=\"\" class=\"wp-image-128\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-4.png 946w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-4-300x189.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-4-768x484.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-4-80x50.png 80w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/figure>\n\n\n\n<p>Now we need to create a &#8220;module&#8221; this is where the files will be stored.  On the destination server, click on &#8220;actions&#8221; on the same screen as the previous step, and then click on &#8220;Rsync Module&#8221; on the top menu, then click &#8220;add&#8221;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Name -  Backup (you can choose whatever, but you'll be using it in the next few steps.\nPath -  The dataset you created with the previous step to store files\nAccess Mode - Write (for one way sync)\nUser - root\nGroup - wheel<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"791\" src=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-5.png\" alt=\"\" class=\"wp-image-129\" srcset=\"https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-5.png 937w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-5-300x253.png 300w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-5-768x648.png 768w, https:\/\/blog.mctechnologies.net\/wp-content\/uploads\/2019\/02\/image-5-80x68.png 80w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<p>On the source server, Click on &#8220;Tasks&#8221; on the left hand menu and then &#8220;Rysnc Tasks&#8221; and add your first task<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Path - The directory you want to sync\nUser - Root\nRync Mode - Rysnc module\nRemote Module Name - Backup (the name you picked in the previous step)\nDirection - Push\nSchedule the Rync task - Schedule it!\n(Check out the various options)\n<\/code><\/pre>\n\n\n\n<p>Click save, and you should be able to run your job, and verify the results.<br><\/p>\n\n\n\n<p>You can create multiple tasks to upload to the same destination module.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Systems: Freenas1 (Freenas 11.2U2) &#8211; Source Freenas2 (Freenas 11.2U2) &#8211; Destination On the destination system, create a Dataset for the files that you will be receiving, for me it was going to reside on \/mnt\/Backup1\/Shares. To create a&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":1,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":130,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions\/130"}],"wp:attachment":[{"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mctechnologies.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}