{"id":5227,"date":"2015-10-04T12:39:57","date_gmt":"2015-10-04T04:39:57","guid":{"rendered":"http:\/\/rmohan.com\/?p=5227"},"modified":"2015-10-04T12:39:57","modified_gmt":"2015-10-04T04:39:57","slug":"incremental-backup-using-rsync-command","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=5227","title":{"rendered":"INCREMENTAL BACKUP USING rsync COMMAND"},"content":{"rendered":"<p>SIMPLE INCREMENTAL BACKUP USING rsync COMMAND<\/p>\n<p>Backups  can be classified to two types.They are<\/p>\n<p>1)Full backup<br \/>\nThe entire data will be backup will be taken every time<\/p>\n<p>2)Incremental backup<\/p>\n<p>Incremental backup take the full backup at the first time ,from the second time it will compare the files in first backup and the files in the directory which backup to be taken and only copy the modified files .<\/p>\n<p>rsync<\/p>\n<p>The rsync utility allows you to copyfrom local sysstem to a remote system or copy between two local directories .If the files exist in the destination directory ,rsync only copy the differences in the file,this property of rsync make it ideal for incremental backup<\/p>\n<p>here is the syntax for rsync<\/p>\n<p>rsync [options] [source folder] [Destination]<\/p>\n<p>Example<\/p>\n<p>rsync -azv \/etc\/sysconfig \/backup\/<\/p>\n<p>In the above example the entire sysconfig directory will be copied to \/backup folder when firsttime we run this command ,from second time onwards rsync checks the files in folder \/backup with \/etc\/sysconfig and only copy the differnce in sysconfig file to \/backup folder&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SIMPLE INCREMENTAL BACKUP USING rsync COMMAND<\/p>\n<p>Backups can be classified to two types.They are<\/p>\n<p>1)Full backup The entire data will be backup will be taken every time<\/p>\n<p>2)Incremental backup<\/p>\n<p>Incremental backup take the full backup at the first time ,from the second time it will compare the files in first backup and the files in [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5227"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5227"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5227\/revisions"}],"predecessor-version":[{"id":5228,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/5227\/revisions\/5228"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}