Answer the question
In order to leave comments, you need to log in
How to copy everything except *.txt to rsync?
Hello. Please tell me how to transfer all files and folders through rsyns except txt files from one server to another
I do this rsync -avzhv -e --exclude "*.txt" ssh /home/* [email protected]:/home/
backup rsync: Failed to exec --exclude: No such file or directory (2)
I have a bunch of other folders and files in my home folder. So, I need to copy completely all the data from the home folder except for txt files
Answer the question
In order to leave comments, you need to log in
The -e must be followed by a parameter indicating what to run as a remote shell. Naturally, --exclude is not suitable for this role. =)
In general, it is simply inserted in the wrong place.
Well, it is not necessary to write -e ssh - this is already the default.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question