Backups

From Antiflux Wiki

(Difference between revisions)
Jump to: navigation, search
Current revision (16:09, 28 July 2009) (edit) (undo)
(remove hourly interval information because we backup once per day now)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-
Every morning, okcomputer copies nearly all files to /backup/daily for safe keeping. If you ever accidentally delete or chage a file, you can grab last night's backup. If your home directory is /home/username, check the /backup/daily/home/username directory.
+
We use [http://www.rsnapshot.org/ rsnapshot] to backup okcomputer. If you ever accidentally delete or change a file and want the original file back, go to /backup/snapshots/ where you'll see a set of directories like this.
 +
* monthly.2
 +
* monthly.1
 +
* monthly.0
 +
* weekly.3
 +
* weekly.2
 +
* weekly.1
 +
* weekly.0
 +
* daily.6
 +
* daily.5
 +
* daily.4
 +
* daily.3
 +
* daily.2
 +
* daily.1
 +
* daily.0
 +
 
 +
The "daily" directories contain the latest snapshots, from the backup we run every morning. They get rotated out to the "weekly" directories at the end of the week, which in turn get rotated out to the "monthly" directories at the end of the month. Chances are you just want to look in daily.0 where you'll find a copy of okcomputer's whole directory tree. If your home directory is /home/username, check /backup/snapshots/daily.0/home/username for any files you want to restore back to your home directory. If you want older versions, check the daily.1, daily.2, ..., weekly.0, ..., monthly.0, etc. directories in order.
 +
 
 +
You can't delete files from /backup/snapshots, only copy them to restore.
 +
 
 +
[[Category:Services]]

Current revision

We use rsnapshot to backup okcomputer. If you ever accidentally delete or change a file and want the original file back, go to /backup/snapshots/ where you'll see a set of directories like this.

  • monthly.2
  • monthly.1
  • monthly.0
  • weekly.3
  • weekly.2
  • weekly.1
  • weekly.0
  • daily.6
  • daily.5
  • daily.4
  • daily.3
  • daily.2
  • daily.1
  • daily.0

The "daily" directories contain the latest snapshots, from the backup we run every morning. They get rotated out to the "weekly" directories at the end of the week, which in turn get rotated out to the "monthly" directories at the end of the month. Chances are you just want to look in daily.0 where you'll find a copy of okcomputer's whole directory tree. If your home directory is /home/username, check /backup/snapshots/daily.0/home/username for any files you want to restore back to your home directory. If you want older versions, check the daily.1, daily.2, ..., weekly.0, ..., monthly.0, etc. directories in order.

You can't delete files from /backup/snapshots, only copy them to restore.

Personal tools