Skip to content

Instantly share code, notes, and snippets.

@artsi0m
Created August 9, 2021 16:00
Show Gist options
  • Save artsi0m/a6c80f22d34d21bf6ab3244ff7b98018 to your computer and use it in GitHub Desktop.
Save artsi0m/a6c80f22d34d21bf6ab3244ff7b98018 to your computer and use it in GitHub Desktop.
Backing up my home partition
#!/bin/sh
set -e # Errexit
set -u # Nounset
set -o pipefail
dump -0un -f - /home | gzip -9 | age -r \
agekeyusedforfileencryption_https_age-encryption_org_v1 \
> /mnt/backup/home_dump-0.gz.age
@artsi0m
Copy link
Author

artsi0m commented Aug 9, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment