7 Jan
2022
7 Jan
'22
09:10
On 1/6/22 11:31, jdd@dodin.org wrote:
# rsync -azv -e ssh -x --exclude=/tmp --exclude=*cache* --exclude=*.Trash* --exclude=/sys --exclude=/proc --exclude=/dev --delete root@<source domain>:/* <local folder>
I checked that -x do *not* exclude /proc.
But it may be also useful to exclude /run? isn't this one dynamic (ie removed at boot time).
I don't remember also is proc, sys, dev a recreated at boot, no need to make them by hand at restore time?
you crrectly used -x: $ rsync --help | grep -F -- ' -x' --one-file-system, -x don't cross filesystem boundaries and as /proc, /sys and so on are mount points (see e.g. findmnt), you don't need to exclude them explicitly. Have a nice day, Berny