M
M
m00nkey2014-09-11 15:16:51
linux
m00nkey, 2014-09-11 15:16:51

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

1 answer(s)
P
Power, 2014-09-13
@Power

Arguments must be enclosed in quotes. Or escape spaces with the same backslashes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question