Skip to content

Instantly share code, notes, and snippets.

@epcim
Created October 20, 2015 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epcim/0cf24d227e5a20097306 to your computer and use it in GitHub Desktop.
Save epcim/0cf24d227e5a20097306 to your computer and use it in GitHub Desktop.

rsync, rdiff-backup tutorial

time sudo tar --exclude "*rdiff-backup-data*" czf /hg2g/bkp/ape_pmichalec-workforce-nb.t410.linux.home_2011-08-07.tar.gz /media/portable-hg2g/bkp/ape/pmichalec-workforce-nb.t410.linux.home

BACKUP GENTOO

sudo rdiff-backup -v5 --print-statistics --exclude '**/tmp*/*' --exclude '/usr/portage/distfiles' \
                                         --exclude /tmp --exclude /mnt --exclude /media \
                                         --exclude /sys --exclude /proc / /DEST/`hostname`.mirror

BACKUP Filesystem

rdiff-backup --exclude '**/tmp*/*' /mnt/usbdisk_workforce/  /mnt/usbdisk_a/hg2g/bkp/usbdisk_workforce.mirror
rdiff-backup --exclude '**/tmp*/*' /mnt/xp_c/  /mnt/usbdisk_a/hg2g/bkp/xp_c.mirror

Deleting older files

rdiff-backup --remove-older-than 2W /mnt/usbdisk_a/hg2g/bkp/dontpanic.gentoo.tp41.mirror

Docs

UI

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