{"id":137,"date":"2019-01-16T10:18:59","date_gmt":"2019-01-16T06:18:59","guid":{"rendered":"http:\/\/kidds.co.za\/?p=137"},"modified":"2019-01-16T10:18:59","modified_gmt":"2019-01-16T06:18:59","slug":"rsync-and-cron-to-keep-backups-in-place-from-one-server-to-another","status":"publish","type":"post","link":"https:\/\/kidds.co.za\/index.php\/2019\/01\/16\/rsync-and-cron-to-keep-backups-in-place-from-one-server-to-another\/","title":{"rendered":"RSYNC and CRON to keep backups in place from one server to another"},"content":{"rendered":"\n<p>Setting the following command in a cronjob will ensure the remote folder is backed up to the location set and it keeps 1 old version of the file if it finds the original file has been changed.<\/p>\n\n\n\n<p>If you need to exclude files like logs then add the &#8211;exclude option<\/p>\n\n\n\n<p>rsync -arWPb &#8211;exclude=&#8217;access**&#8217; username@serveraddress:\/remote\/location\/ \/destination\/on\/currentmachine\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting the following command in a cronjob will ensure the remote folder is backed up to the location set and it keeps 1 old version of the file if it finds the original file has been changed. If you need to exclude files like logs then add the &#8211;exclude option rsync -arWPb &#8211;exclude=&#8217;access**&#8217; username@serveraddress:\/remote\/location\/ \/destination\/on\/currentmachine\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-137","post","type-post","status-publish","format-standard","hentry","category-general-server-stuff","category-linux"],"_links":{"self":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=137"}],"version-history":[{"count":1,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions"}],"predecessor-version":[{"id":138,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/137\/revisions\/138"}],"wp:attachment":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}