<quote who="david">

>> They're entirely virtual filesystems and don't need to be backed up at
>> all.  In general, you should use the -x (or --one-file-system) parameter
>> with rsync when you're backing up -- saves backing up (and even reading)
>> useless crap like this.
>
> So *that's* what -x means ;-)
>
>
> I've been doing:
>
> # rsync -a --exclude=/media/backupdrive / /media/backupdrive
>
> Without --exclude I get some "interesting" results ;-)
>
> Does the -x switch solve this problem too? It might sound naive, but I
> understood the file system to be everything below /

Each mount point exposes a filesystem, so really you have many filesystems
below / ... the obviously different ones like /proc and /sys, but also the
disk you mounted for backup, /home if you have that on a different disk...

So yes, rsync -ax / /media/backupdrive/ will do the right thing unless you
have data mounted elsewhere which you want backed up. Always match slashes
with rsync source/destination by the way.

- Jeff

-- 
linux.conf.au 2010: Wellington, NZ       http://www.penguinsvisiting.org.nz/
 
  "I like your Christ, I do not like your Christians. Your Christians are
                  so unlike your Christ." - Mahatma Gandhi
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to