Results 1 to 7 of 7
I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed ...
- 01-12-2011 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 38
rsnapshot backups
I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.
My question is ... what subdirectories should be excluded in the backup. Now I have following excluded ... but are they the right ones or have I missed something:
exclude /proc
exclude /lost+found
exclude /mnt
exclude /media
exclude /sys
exclude /home/lost+found
exclude /tmp
- 01-12-2011 #2Just Joined!
- Join Date
- Mar 2010
- Posts
- 79
- 01-12-2011 #3Just Joined!
- Join Date
- Jul 2007
- Posts
- 38
What about 'exclude /dev'
- 01-12-2011 #4Just Joined!
- Join Date
- Mar 2010
- Posts
- 79
Sorry, you are right. I shouldn't trust "manual" comparing (especially not when tired).
Here is my command:
It excludes the users data, but not the configs.Code:rsync -auv -n --delete-after \ --exclude="/home/markus/[a-zA-Z0-9]*" \ --exclude="/home/markus/.VirtualBox/*" \ --exclude="/home/xepanche/[a-zA-Z0-9]*" \ --exclude="/proc/*" \ --exclude="/lost+found/*" \ --exclude="/dev/*" \ --exclude="/mnt/*" \ --exclude="/media/*" \ --exclude="/sys/*" \ --exclude="/tmp/*" \ / /media/backup >dry.txt
- 01-12-2011 #5Just Joined!
- Join Date
- Jul 2007
- Posts
- 38
Forgot to ask one thing.
What subdirectories from / should be included in the backup ?
ls -l / gives:
/bin
/boot
/etc
/initrd.img
/initrd.img.old
/lib
/opt
/root
/sbin
/selinux
/srv
/usr
/var
/vmlinuz
/vmlinuz.old
- 01-12-2011 #6Just Joined!
- Join Date
- Mar 2010
- Posts
- 79
I exclude what i posted in my last post, so all the rest gets "included"
For me that works, and it works good.
I think my Backup is less than 5GB (and way less), so it ain't much of a problem anyway.
I did never use rsnapshot though.
- 01-12-2011 #7Just Joined!
- Join Date
- Jul 2007
- Posts
- 38
That sounds OK to include all except the 'exclude' stuff


Reply With Quote

