{"id":450,"date":"2012-06-25T22:56:49","date_gmt":"2012-06-25T22:56:49","guid":{"rendered":"https:\/\/halsafar.ca\/blog\/?p=450"},"modified":"2012-06-25T22:56:49","modified_gmt":"2012-06-25T22:56:49","slug":"server-backup-management-script","status":"publish","type":"post","link":"https:\/\/halsafar.ca\/blog\/2012\/06\/25\/server-backup-management-script\/","title":{"rendered":"Server Backup Management Script"},"content":{"rendered":"<p>Running the infrastructure for your home, small business or company can be fun but you also take the risks on yourself. \u00a0Data loss being the biggest point of failure. \u00a0Nothing short of a steady daily incremental backup and monthly full backup. \u00a0These backups should be stored offsite. \u00a0All important storage drives should be raided with redundancy. \u00a0The server(s) needs to be on a UPS (and test the UPS). \u00a0Frankly the majority of this is common knowledge. \u00a0The big pain comes in actually setting the backup system up. \u00a0Reinventing the wheel is always a bad idea so instead of coming up with your own set of backup scripts the first step should be to see what existing software or solution are out there.<\/p>\n<p>This applies only to Linux. \u00a0I tested many pieces of software and found most of them clunky at best. \u00a0Without naming names I&#8217;ll just say every piece of software I tried was lacking when compared to a scripted setup.<\/p>\n<p>Searching the internet I came across this perfect script for which I take no credit for but I want to share. \u00a0<a href=\"http:\/\/www.eurosistems.ro\/back-res\" target=\"_blank\">Backup-Script<\/a>\u00a0(mirror: <a title=\"Back-Res\" href=\"https:\/\/halsafar.ca\/blog\/uploads\/back-res\">Backup-Script<\/a>)<\/p>\n<p>All instructions to run the script are contained within the file description. \u00a0It is very simple to setup, the instructions even include a good common cron tab line.<\/p>\n<p>I customized the script a bit to suit my needs a bit better. \u00a0It is ready to go for a vanilla ispconfig or plesk setup. \u00a0It manages both the backup but also the restore. \u00a0It does a full backup and then incremental backups. \u00a0Restoration is easy, the same script can be used. \u00a0All the instructions are in the script header.<\/p>\n<p>So I ran a full backup onto a local hard drive. \u00a0Then moved that hard drive to an offsite storage location. \u00a0The incremental backups are fairly small in comparison so those auto transfer via rsync upon completion.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running the infrastructure for your home, small business or company can be fun but you also take the risks on yourself. \u00a0Data loss being the biggest point of failure. \u00a0Nothing short of a steady daily incremental backup and monthly full<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/halsafar.ca\/blog\/2012\/06\/25\/server-backup-management-script\/\">Read more <span class=\"screen-reader-text\">Server Backup Management Script<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[58,57,22,60,59],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-developement","tag-backup","tag-ispconfig","tag-linkedin","tag-linux","tag-script"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":7,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"predecessor-version":[{"id":458,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/posts\/450\/revisions\/458"}],"wp:attachment":[{"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/halsafar.ca\/blog\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}