Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

brett/cryptshot

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
52 Commits
 
 
 
 

Repository files navigation

Cryptshot

Open and mount a LUKS volume before performing a backup, defaulting to rsnapshot.

This script first checks to see if a volume with the given UUID exists. If the volume is found, it is treated as a LUKS volume and decrypted with the given key file, after which it is mounted. The script then runs the specified backup program. After the backup is complete, the volume is unmounted and the LUKS mapping is removed. Optionally, the mount point can be deleted to complete the clean-up.

Since the first step taken is to check if the given volume exists, it is appropriate for situations where the external backup volume is not always available to the machine (such as a USB backup drive and a laptop).

If using rsnapshot, the interval should be passed with the -i argument. Cryptshot can then replace rsnapshot in your crontab.

# rsnapshot daily
cryptshot.sh -i daily

See source for configuration.

About

Open and mount a LUKS volume before performing a backup with rsnaphot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.