Rsync with ssh on Synology NAS: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
rsync [--protect-args] --rsync-path=/usr/syno/bin/rsync -avzhe ssh "root@192.168.1.4:/volume1/base/Software Archive/Windows 10 x64.vmwarevm" ./local-dir
rsync [--protect-args] --rsync-path=/usr/syno/bin/rsync -avzhe ssh "root@192.168.1.4:/volume1/base/Software Archive/Windows 10 x64.vmwarevm" ./local-dir
</syntaxhighlight>
To pull content from a Mac:
<syntaxhighlight lang='bash'>
sync --protect-args --rsync-path=/usr/local/bin/rsync -avzhe ssh "ovidiu@${mac_ip}:/Users/ovidiu/VMware Fusion VMs/Windows 10 x64.vmwarevm" .
</syntaxhighlight>
</syntaxhighlight>

Revision as of 02:00, 26 July 2021

Internal

Overview

The rsync path on the Synology NAS server has to be explicitly specified with --rsync-path. This command is executed on a different machine that connects to the Synology NAS server via ssh.

rsync [--protect-args] --rsync-path=/usr/syno/bin/rsync -avzhe ssh "root@192.168.1.4:/volume1/base/Software Archive/Windows 10 x64.vmwarevm" ./local-dir

To pull content from a Mac:

sync --protect-args --rsync-path=/usr/local/bin/rsync -avzhe ssh "ovidiu@${mac_ip}:/Users/ovidiu/VMware Fusion VMs/Windows 10 x64.vmwarevm" .