Backups
From Antiflux Wiki
(updated now that we use rsnapshot) |
|||
Line 1: | Line 1: | ||
- | + | We use [http://www.rsnapshot.org/ rsnapshot] to backup okcomputer three times a day. If you ever accidentally delete or change a file and want the original file back, just grab the latest snapshot from /backup/snapshots/ where you'll see a set of directories like this. | |
+ | * weekly.3 | ||
+ | * weekly.2 | ||
+ | * weekly.1 | ||
+ | * weekly.0 | ||
+ | * daily.6 | ||
+ | * daily.5 | ||
+ | * daily.4 | ||
+ | * daily.3 | ||
+ | * daily.2 | ||
+ | * daily.1 | ||
+ | * daily.0 | ||
+ | * hourly.2 | ||
+ | * hourly.1 | ||
+ | * hourly.0 | ||
+ | |||
+ | The "hourly" directories contain the latest snapshots, from the backups we run 3 times per day. They get rotated out to the "daily" directories at the end of the day, which in turn get rotated out to the "weekly" directories at the end of the week. Chances are you just want to look in hourly.0 where you'll find a copy of okcomputer's whole directory tree. If your home directory is /home/username, check /backup/snapshots/hourly.0/home/username for any files you want to restore back to your home directory. If you want older versions, check the hourly.1, hourly.2, daily.0, etc. directories in order. | ||
[[Category:Services]] | [[Category:Services]] |
Revision as of 15:00, 25 April 2009
We use rsnapshot to backup okcomputer three times a day. If you ever accidentally delete or change a file and want the original file back, just grab the latest snapshot from /backup/snapshots/ where you'll see a set of directories like this.
- weekly.3
- weekly.2
- weekly.1
- weekly.0
- daily.6
- daily.5
- daily.4
- daily.3
- daily.2
- daily.1
- daily.0
- hourly.2
- hourly.1
- hourly.0
The "hourly" directories contain the latest snapshots, from the backups we run 3 times per day. They get rotated out to the "daily" directories at the end of the day, which in turn get rotated out to the "weekly" directories at the end of the week. Chances are you just want to look in hourly.0 where you'll find a copy of okcomputer's whole directory tree. If your home directory is /home/username, check /backup/snapshots/hourly.0/home/username for any files you want to restore back to your home directory. If you want older versions, check the hourly.1, hourly.2, daily.0, etc. directories in order.