david wrote:
> # rsync -a --exclude=/media/backupdrive / /media/backupdrive
> Does the -x switch solve this problem too?
If /media/backupdrive is a separate disk or partition, then yes.
> It might sound naive, but I
> understood the file system to be everything below /
You have many filesystems. Run 'mount' in a terminal and you will
get a list of your separate file systems. On my machine it looks
like:
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-23-generic/volatile type tmpfs (rw)
/dev/sda3 on /home type ext3 (rw)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
tmpfs on /lib/modules/2.6.24-24-generic/volatile type tmpfs (rw,mode=0755)
Most of those are virtual, with only /dev/sda1 and /dev/sda3 being
real filesystems. On my machine if I did rsync -x / it would not
include /home which is on /dev/sda3, but would include everything
on /dev/sda1.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html