Answer the question
In order to leave comments, you need to log in
Rsync "-" in catalog name, how to escape?
Good day!
There is rsync, which does everything well, but recently added directories for synchronization with "-" in the name, and rsync categorically refuses to accept them.
Can you tell me how to screen it?
broken line example:
sshpass -p "pass" rsync -av user @127 .0.0.1:/home/user/files/Sync\ \&\ \Files - for - sync/ /home/user/files - for - sync /
You can't rename directories
upd: figured it out.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question