Hi,
Why don't you use a backup system like dirvish? It has served me well for quite some time now.
Otherwise (or also with dirvish) you will need to exclude device and virtual files like those, maybe in a exclude file (e.g. rsync_exclude.txt):
Code:
/path/to/file/from/directory/rsync/is/run
path/to/file/which/is/in/any/sub/directory
path/to/directory/
/path/to/directory/
path/to/directory/** #to exclude every file under directory
/other/pattern/???directorybeginningwithany3characters/and/fileendingwithanything*
+ path/to/file/to/keep/excluded/before/or/after
# ...
# unfortunately no regular expressions...
and then run with
Code:
rsync --exclude-from=rsync_exclude.txt ...
You can look up the dirvish docs, but i found rsync quite challenging to get it to do exactly what i want...
__________________
Always mention at least your distribution/version! You can add it in your signature if you don't want to always type it. ;-)
Distributions:
Ubuntu 5.10 with custom kernel (2.6.16-suspend2),
Debian Sarge 3.1 and Etch
Please submit your ISP or Webhost to (free)
http://www.ihostnz.com
Recent comments
20 hours 55 min ago
1 day 6 hours ago
1 day 7 hours ago
1 day 10 hours ago
1 day 15 hours ago
1 day 15 hours ago
1 day 17 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 10 hours ago