Skip to content

Instantly share code, notes, and snippets.

@rnkn
Last active October 30, 2024 09:43
Show Gist options
  • Save rnkn/699ae7c6290d9c3689dab383e549a4de to your computer and use it in GitHub Desktop.
Save rnkn/699ae7c6290d9c3689dab383e549a4de to your computer and use it in GitHub Desktop.

Backup to remote encrypted volume

Remote

$ cd ~
$ doas su
# vnconfig vnd0 backup.enc
# bioctl -c C -l vnd0a softraid0
Passphrase: 
softraid0: CRYPTO volume attached as sd1
# mount /dev/sd1e backup/

Local

$ rsync -av --exclude *~ --exclude .git/ --delete --delete-excluded Documents starbeastie:backup/

Remote

# umount /dev/sd1e
# bioctl -d sd1
# vnconfig -u vnd0
# ^D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment