Skip to content

Drive the fabulous Disk Archiver for full, differential or incremental backups with error correction + restore test.

License

Notifications You must be signed in to change notification settings

per2jensen/dar-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full, differential or incremental backups using dar

The wonderful dar Disk Archiver is used for the heavy lifting, together with the The Parchive suite in these scripts.

License

These scripts are licensed under the GPLv3 license. Read more here: GNU GPL 3.0, or have a look at the "LICENSE" file in this repository.

Github locations

'dar-backup' lives at Github

My use case

I have cloud storage mounted on a directory within my home dir. The filesystem is FUSE based, which gives it a few special features:

  • a non-privileged user (me :-)) can perform a mount
  • a privileged user cannot look into the filesystem --> a backup script running as root is not suitable

I needed the following:

  • General purpose backup system, which has saved my bacon on some occasions.
  • Backup my cloud storage to something local (cloud is convenient, but I want control over my backups).
  • Backup primarily photos, video and different types of documents.
  • Have a simple way of restoring, possibly years into the future.
    • 'dar' fits that scenario with a single statically linked binary (kept with the archives).
    • There is no need install/configure anything - restoring is simple and works well.
  • During backup archives must be tested and a restore test (however small) performed.
  • Utilize Parchive to create redundancy to increase the chance of fixing bitrot in the archives down the line.
  • Verify archive's integrity, after it has been moved around, or copied somewhere.

I do not need the encryption features of dar, as all storage is already encrypted.

Projects these scripts benefit from

  1. The wonderful dar achiver
  2. The Parchive suite
  3. shellcheck - a bash linter
  4. Ubuntu of course :-)
  5. PyPI