common style using "tar+exclude" suggested in internet sources is like:
tar \
- -exclude… \
- -exclude… \
- -exclude… \
…
- -exclude… \
-cvpzf home_bup.tgz /home/username
but i think it is a very annoying method.
I suggest next:
for fedora core
tar cvpzPf /tmp/backup.tar.gz –exclude={/proc/*,/sys/*,/tmp/*,/dev/*} /
for Debian
tar cvfpP /tmp/debian2.tar –exclude={”/proc/*”,”/sys*”,”/tmp/*”,”/home/user/*”} /
and more common if i need backup using ssh (ssh+nice+tar)
ssh root@192.168.0.1 “cd /;nice -n 10 tar cvpP –exclude={”/proc/*”,”/sys*”,”/tmp/*”,”/home/user/*”} /”>backup.tar.gz
and before "exclude" we have two "-" not one.