Skip to content

Instantly share code, notes, and snippets.

@tomasdelvechio
Forked from ralsina/backup.sh
Last active May 10, 2020 02:51
Show Gist options
  • Save tomasdelvechio/09f22e01128a817d912a946cc703faec to your computer and use it in GitHub Desktop.
Save tomasdelvechio/09f22e01128a817d912a946cc703faec to your computer and use it in GitHub Desktop.
#!/bin/bash -x
DEBUG=4
PUNTODEMONTAJE=/vos/sabras
rdiff-backup -v$DEBUG --print-statistics \
--exclude ~/.local/share/Steam/ \
--exclude ~/.cache \
--exclude ~/netkit \
--exclude ~/.steam \
--exclude ~/snap \
--exclude ~/.config/google-chrome \
--exclude ~/Aplicaciones \
--exclude ~/.wine \
--exclude ~/.codeintel \
--exclude ~/.dbus \
--exclude ~/.gvfs \
~ "$PUNTODEMONTAJE"/backup-$USER/
echo rdiff-backup -v$DEBUG --print-statistics \
--remove-older-than 4W \
"$PUNTODEMONTAJE/backup-$USER/"
rdiff-backup -l "$PUNTODEMONTAJE/backup-$USER/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment