I'm planning to use rsnapshot to backup my whole Linux system, though I'm confused by -x
option (same of one_fs
in rsnapshot.conf
). The man page says:
-x one filesystem, don't cross partitions within each backup point
I understand it's not a specific rsnapshot option since rsync, cp, tar and other commands provide this feature as well.
Does file system boundaries refers to different partitions? Different mount points? And what does it mean to don't "cross" them?
Back to my case, I read many people suggesting to use -x
with rsnapshot, but I'm wondering if doing so is not going to compromise the completeness of my backup. I want to backup everything under /
, including /boot
and /home
, which reside on dedicated partitions of the same disk, while at the same time I don't want to backup files and directories not strictly belonging to my system, like /mnt
, /media
, etc.
Executing mount
command on my system gives the following output. Pratically, using rsnapshot -x
, what will be included and what will be left out?
/dev/sda7 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /tmp type tmpfs (rw,noexec,nosuid)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda6 on /boot type ext3 (rw)
/dev/sda8 on /home type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/myuser/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=myuser)