add backups from laptop
This commit is contained in:
parent
6158a0967d
commit
cc300b7395
@ -8,7 +8,9 @@ trap 'echo $( date ) Backup interrupted >&2; exit 2' INT TERM
|
||||
|
||||
info "Starting backup"
|
||||
|
||||
borg create \
|
||||
case "$(hostname)" in
|
||||
mantle)
|
||||
borg create \
|
||||
--verbose \
|
||||
--filter AME \
|
||||
--list \
|
||||
@ -66,7 +68,53 @@ borg create \
|
||||
/home/ninewise/.ssh \
|
||||
/home/ninewise/.xmonad/src/ \
|
||||
/home/ninewise/.yash_history \
|
||||
/data
|
||||
/data ;;
|
||||
abysm)
|
||||
borg create \
|
||||
--verbose \
|
||||
--filter AME \
|
||||
--list \
|
||||
--stats \
|
||||
--show-rc \
|
||||
--compression lz4 \
|
||||
--exclude-caches \
|
||||
--exclude '/etc/sv/*/supervise' \
|
||||
--exclude '/etc/sudoers' \
|
||||
--exclude '/etc/securetty' \
|
||||
--exclude '/etc/wpa_supplicant/wpa_supplicant.conf' \
|
||||
--exclude '/etc/sudoers.dist' \
|
||||
--exclude '/etc/kernel.d/post-install/50-grub' \
|
||||
--exclude '/etc/kernel.d/post-remove/50-grub' \
|
||||
--exclude '/etc/gshadow-' \
|
||||
--exclude '/etc/gshadow' \
|
||||
--exclude '/etc/passwd-' \
|
||||
--exclude '/etc/shadow-' \
|
||||
--exclude '/etc/shadow' \
|
||||
--exclude '/var/tmp/*' \
|
||||
--exclude '/var/db/*' \
|
||||
--exclude '/var/cache' \
|
||||
--exclude '/var/lib/alsa' \
|
||||
--exclude '/var/lib/tor' \
|
||||
--exclude '/var/lib/random-seed' \
|
||||
--exclude '/var/log/tallylog' \
|
||||
--exclude '/var/log/btmp' \
|
||||
--exclude '/var/log/dmesg.log' \
|
||||
--exclude '/var/log/faillog' \
|
||||
--exclude '/home/*/.*' \
|
||||
--exclude '/home/*/services/*/supervise' \
|
||||
--exclude '/home/*/dotfiles' \
|
||||
--exclude '*/.git/*' \
|
||||
--exclude '*/.stack-work/*' \
|
||||
--exclude '*/lock' \
|
||||
--exclude '*.lock' \
|
||||
--exclude '*/.mbsyncstate*' \
|
||||
--exclude '*/target/*' \
|
||||
--exclude '*/build/*' \
|
||||
::'{hostname}-{now}' \
|
||||
/etc \
|
||||
/var \
|
||||
/home/noctua/ ;;
|
||||
esac
|
||||
|
||||
backup_exit=$?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user