Actions
Backup Scheme¶
Borg Backup¶
I discovered BorgBackup a while back and decided to give it a chance. So far it works very well.
Install¶
Create Repo¶
- This assumes that the backup repo is located on file2. In the cases shown below file2 is mounted via nfs.
- Create backup repo and make a note of the password.
Create Backup¶
- Be sure file2 is mounted via nfs.
- Create backup; note that the date/timestamp is a convention but the backup can be given any name.
$ borg create --stats --progress --compression=lz4 /mnt/file2/backups/Documents::20220402_1202 /mnt/phalanx/Documents // can give any name $ borg create --stats --progress --compression=lz4 /mnt/file2/backups/Documents::{user}-{now} /mnt/phalanx/Documents // use built-in variables $ borg list /mnt/file2/backups/Documents/
Legacy Backup Scheme¶
Note these instructions are obsolete but are left for reference.
Overview¶
The following items are currently backed up:- Documents folder
- Pictures folder (includes iPhoto library)
- Trac site including git repo
Backup tarballs are compressed with lrzip. Backups are stored on phalanx, on saga, and on an external HDD. I really should do this at the very least every 6 months, but right now I do it only when I remember. I should probably create a recurring calendar reminder and do it quarterly...
Images (JPEGs) are using a neato compression software I found called packJPG and my own wrapper utility called Photo Compress Archiver.
Steps¶
- Make sure the latest lrzip is installed and phalanx is mounted.
- On prometheus, change to the HDD:
Make a backup directory corresponding to the current date, name it according to YYYYMMDD (e.g. 20131117 for November 17, 2013) format: - Create tarball for Documents folder:
Compress Documents tarball: - Copy pictures folder to temporary location:
Run PCA on copy:
Create tarball of compressed pictures
Compress Pictures tarball: - To create Trac tarball, you must ssh into phalanx (create a separate tab), create the tarball, then copy it to the `storage` share:
From prometheus, grab tarball and compress: - Remove intermediate tar files:
- Copy backup folder to phalanx and the external HDD.
- Finally, rsync backup to saga:
Updated by about 4 years ago · 2 revisions