Helper scripts to manage back up and restore with duplicity
Migrate Key
gpg --export-secret-key duplicity > ~/duplicity.asc
gpg --import duplicity.asc
# For alpine
#gpg --pinentry-mode loopback --import duplicity.asc
Trust Key
gpg --edit-key <KEY_ID>
gpg> trust
gpg> q
Install duplicity and run backup
apk add duplicity
./.vault/backup.sh
sudo crontab -u n0mn0m -e
0 22 * * * bash ./.vault/backup.sh