Rsync with ssh on Synology NAS: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
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> | </syntaxhighlight> | ||
To pull content from a Mac: | To pull content from a Mac (the Mac [[Rsync#Mac|has to have the latest rsync installed]]): | ||
<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> | |||
To push content to a Mac (the Mac [[Rsync#Mac|has to have the latest rsync installed]]): | |||
<syntaxhighlight lang='bash'> | <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" . | 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:12, 11 September 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 (the Mac has to have the latest rsync installed):
sync --protect-args --rsync-path=/usr/local/bin/rsync -avzhe ssh "ovidiu@${mac_ip}:/Users/ovidiu/VMware Fusion VMs/Windows 10 x64.vmwarevm" .
To push content to a Mac (the Mac has to have the latest rsync installed):
sync --protect-args --rsync-path=/usr/local/bin/rsync -avzhe ssh "ovidiu@${mac_ip}:/Users/ovidiu/VMware Fusion VMs/Windows 10 x64.vmwarevm" .