Skip to content

adammfurman/Encrypted-Backups-with-VeraCrypt-and-rsync-on-macOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encrypted Backups with VeraCrypt and rsync on macOS

Apple macOS signed commits PGP signatures

For context and instructions on how to create and use these scripts, visit my project page.

Purpose: Credential management and secure backup of sparsely-changing cryptographic keys, passwords, and TOTPs to a USB drive.

Requirements:

  • USB drive (or any storage media)
  • macOS
  • VeraCrypt
  • rsync

Project inspired by Sun Knudsen's guide.

example_env

Rename example_env to .env and add your volume path, mount point, and backup files.

mv example_env .env

backup.sh

The backup.sh script mounts an encrypted VeraCrypt volume from a USB drive, backs up specified directories and files, prompts a manual check, creates a hash, and safely unmounts when finished.

check.sh

The check.sh runs an integrity check script that mounts an encrypted VeraCrypt volume from a USB drive, asks for the hash of your backup, compares it to the current hash of the volume, then outputs the result and unmounts the volume.

restore.sh

The restore.sh script mounts an encrypted VeraCrypt volume from a USB drive, opens the volume in finder, then unmounts.

Signatures

You can verify each script with my PGP public key to confirm authenticity and integrity.

gpg --verify signatures/backup.sh.asc backup.sh

About

Automate backing up data to an encrypted VeraCrypt volume on a USB drive with rsync.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors