Skip to content

danielmcgraw/Incremental-Rotating-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

I recently needed to come up with a quick and easy and hopefully elegant way to keep incremental rotating backups of the code I was working on. After a little research and testing I came up with the following bash script. The magic in this is taking advantage of rsync’s link-dest option. The link-dest option allows you to specify a folder to hard link. This means that when you rsync it only pulls the difference between the link-dest version and the latest version of the code. Thus you will only ever take up disk space equal to a copy of your code plus a weeks worth of changes(diffs) instead of eight copies of your code. When you combine this with a simple rotating directory structure you have a pretty quick and easy incremental rotating backup solution.

If you like this project please check out my site(http://danielmcgraw.com/) subscribe to my feed(http://danielmcgraw.com/feed/), and follow me on twitter(http://twitter.com/danielmcgraw) or tumblr(http://danielmcgraw.tumblr.com/) and say hi.

About

Bash script for incremental seven day rotating backup using rsync

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages