Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Your code don't work for me. Here is the output: rsync: change_dir "/path/to" failed: No such file or directory (2) rsync: link_stat "/home/username/\-o" failed: No such file or directory (2) rsync: link_stat "/home/username/Compression=no" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0] ./proof.sh: line 6: sending: command not found Commented Dec 14, 2015 at 8:11
  • Thats because the path /path/to surely does not exists as specified in your error No such file or directory (2) Commented Dec 14, 2015 at 9:22
  • of course I changed /path/to/file to existed and accessible file. Look, if I use your code, but echo "" the last line instead of backticks it, it outputs /usr/bin/rsync -azhrP /path/to/file --rsh=ssh \-o Compression=no root@localhost:/tmp - so ' is missing, and \-o is on it's place. Commented Dec 14, 2015 at 9:58