Score:1

rsync does not respect exclude parameter copying from remote server

us flag

I am using rsync like below to copy the whole filesystem of the remote server with the hostname "beton" to a local directory. I would like to exclude virtual directories like proc, but even if I use the exclude parameter, it is still copied!

sudo rsync -aAXv root@beton:/ --exclude={/dev*,/lost+found*,/media*,/proc*,/run*,/sys*,/tmp*}  /mnt/big/beton_backup

I also tried other possibilities, but the excluded directories always get copied!

--exclude='/sys/*' --exclude='/tmp/*' --exclude='/dev/*' --exclude='/proc/*' 

or

--exclude={/dev,/lost+found,/media,/mnt,/proc,/run,/sys,/tmp} 

It's a problem because /proc is like 64TB, and I don't want to copy it!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.