Quantcast
Channel: User Thomas - Ask Ubuntu
Viewing all articles
Browse latest Browse all 41

Answer by Thomas for rsync to remote directory

$
0
0

For rsync the -p option means to preserve permissions and does not take an argument. Therefore your command cannot be parsed correctly and you get an error.

If you want to change the SSH port on which rsync should connect, use the command as follows.

rsync -avru --exclude-from='/home/me/exclude-me.txt' -e 'ssh -p 2222' \ /home/me/ \assistant@assistant.local:/home/assistant/

Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>