{"id":238,"date":"2015-07-22T15:32:51","date_gmt":"2015-07-22T14:32:51","guid":{"rendered":"http:\/\/www.sarbyn.com\/tech\/?p=238"},"modified":"2015-07-22T15:32:51","modified_gmt":"2015-07-22T14:32:51","slug":"rsync-daily-backup","status":"publish","type":"post","link":"https:\/\/www.sarbyn.com\/blog\/2015\/07\/22\/rsync-daily-backup\/","title":{"rendered":"Rsync : daily backup"},"content":{"rendered":"<p>This is a simple reminder.<br \/>\nI&#8217;m doing a lot of changes in my <a href=\"http:\/\/www.sarbyn.com\/tech\/2014\/10\/15\/alix-2d-voyage-linux-a-diy-home-nas\/\">NAS<\/a> and my &#8220;domotic&#8221; RaspBerry (One of these days I&#8217;m going to write down something about the Raspberry project) and I need a simple backup solution for a running linux machine.<\/p>\n<p>It&#8217;s very simple, use\u00a0this script and add to \/etc\/cron.daily<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrsync -aAXv --exclude={&quot;\/dev\/*&quot;,&quot;\/proc\/*&quot;,&quot;\/sys\/*&quot;,&quot;\/tmp\/*&quot;,&quot;\/run\/*&quot;,&quot;\/mnt\/*&quot;,&quot;\/media\/*&quot;,&quot;\/lost+found&quot;} --delete \/* \/path\/to\/backup\/folder\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a simple reminder. I&#8217;m doing a lot of changes in my NAS and my &#8220;domotic&#8221; RaspBerry (One of these days I&#8217;m going to write down something about the Raspberry project) and I need a simple backup solution for a running linux machine. It&#8217;s very simple, use\u00a0this script and add to \/etc\/cron.daily rsync -aAXv <a class=\"read-more\" href=\"https:\/\/www.sarbyn.com\/blog\/2015\/07\/22\/rsync-daily-backup\/\">&hellip;&nbsp;<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[43,10],"tags":[67,46,66],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-diy-2","category-examples","tag-linux","tag-nas","tag-rsync"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3JApm-3Q","jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/238"}],"collection":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":3,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sarbyn.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}