by Lasse Soelberg
19. May 2009 22:12
This script is used to control the backup procedure for backing up my SVN repositories. A post detailing the software needed for this script to run can be seen here. This script is originally made by Damon Timm and can be found here. I will not detail how to use it, since Damon has done a good job at it, so take a look at his site.
I have made some small modifications to the script. Most important is the possibility to use European buckets with S3.
Edit 23. June 2009: The number of log files in the log file directory started to annoy me, since every file is put in the same directory and the script is run once a day. I have now changed the script to save the log files in subfolders based on year and month.
The Script
More...
by Lasse Soelberg
16. May 2009 15:00
With the increasing amount of data that i have stored in various places, it has become quite clear that i need to have backup of important things. And it should not just be backup on other disks at my home, it should be an online backup somewhere in the cloud.
After doing some research into what options are available i have settled on using Amazon’s S3 for storing the backups. There are no limits on the amount of data to store and you only pay for what you use. And it is not too expensive either.
Backup Requirements
Before I define what i would like to have backup of, i will start by making some requirements that the backup procedure should adhere to.
- Automatic. The backup procedure must be completely automated. If it aren't automatic, i will probably forget a step or two along the way and finally end up not doing any backup at all.
- Controlled by my server. The backup procedures must be controlled by my server, since it is the only machine i have that is always turned on.
- Online backup. The backup’s must be stored online, since a backup on other disks in house is void if the house burns down.
- Free! The backup procedures has to be based on free and/or open source software. It is enough to be paying for the use of S3.
Backup Tasks
So far i have identified 6 different backup tasks that i would like to address. The tasks are as follows:
- SVN repository backup. This should be straightforward. Do incremental backup of the folder containing all my repositories. Should be run once a day.
- Picture backup. This is the big one. Currently i have more than 20 GB worth of pictures. I won’t be doing incremental backup with the pictures, since i don’t think the content of a picture will change. Even though there is a lot of data, i will prefer to have this one be a mirror of my pictures folder. The backup procedure should be run once a week.
- Linux web domain file backup. Incremental backup of various files on my Linux domain. Primarily my phpbb installations. Should be per app backup, for example separate backup of each of my phpbb installations. This procedure should be run once a week.
- Linux web domain DB backup. Incremental backup of the MySQL database belonging to my Linux domain. Per app backup just as for the files. Should be run once a week.
- Windows web domain file backup. Incremental backup of various files on my Windows domain. Backups should be per sub domain and/or app. This procedure should be run once a week.
- Windows web domain DB backup. Incremental backup of the SQL Server databases belonging to the windows domain. Backups should be per database and/or application. Should be run once a week.