Automatic Backups with rsync and Cron
attribution: This article was written by Barry O’Donovan and published on LinuxGazette.net. I have modified it from its original content and format to remove the anacron information, add a few commas, and correct the markup.
1. Introduction
The thing about backups is that they can just be a pain. Everyone knows just how important they are, but very few people actually take the time to perform proper backups. Even after they have felt the pain of losing all those important files.
In this article I am going to show you how to quickly set up your computer for simple, hassle-free, and transparent backups using only rsync and cron. The premise is simple: every night your computer will make an automatic mirror of all the files you wish to backup, and at chosen intervals these mirrors will be archived and kept for a specified period of time.
Before you get your hands dirty on actual implementation, you need to design your own backup policy. In section 3, I discuss what a backup policy should and should not be. I will then introduce the necessary background information on rsync and cron separately. Finally, I will put it all together leaving you with a simple but effective backup regime. (more…)
5 Comments



