问题描述:

I've been hitting a wall with this one and i'm not entirely sure what the issue may be. I will be posting two examples of what i'm trying to do one which works and one which doesn't, unfortunately I need the latter to work.

The Error:

Unexpected local arg: /data/

If arg is a remote file/dir, prefix it with a colon (:).

rsync error: syntax or usage error (code 1) at main.c(1215) [receiver=3.0.6]

This Command executes without issues, however it seems that it does not fully rsync my /data directory.

rsync -e "ssh -e 'none'" --force -azPxvIh --delete-after --exclude-from="/tmp/exclude.txt" [email protected]:/ / > "/tmp/wetrun.txt"

This is the command I've been trying utilize to rsync my /data directory and seems to fail.

rsync -e "ssh -e 'none'" --force -azPxvIh --delete-after --exclude-from="/tmp/exclude.txt" [email protected]:/data/ /data/ > "/tmp/wetrun.txt"

相关阅读:
Top