rsync over SSH on Linux, macOS and Windows with WSL
Prepare a file sync and check it with a dry run first.
Mis à jour le 29 October 2026
Prepare
rsync must be available both on your computer and on Dedikam’s SSH service. On Windows, use WSL with rsync and OpenSSH and use Linux paths inside WSL. On macOS, check the installed version. Find the actual remote path in an SSH session, then use your file interface to create a dedicated directory.
Check the tools and path
Replace the access ID. This read-only check also confirms that the remote host allows rsync.
rsync --version
ssh -p 22 dk00xxxx@ssh.dedikam.com "pwd; rsync --version"Preview an upload
Replace /chemin/local/ and CHEMIN_DISTANT_EXISTANT with the directories you want to use. A trailing slash on the source means its contents will be sent.
rsync -rtivn -e "ssh -p 22" /chemin/local/ dk00xxxx@ssh.dedikam.com:CHEMIN_DISTANT_EXISTANT/Upload after checking the preview
After checking the transfer direction and file list, remove only the n flag. This command can overwrite remote files with the same names. Use a dedicated directory for the first test.
rsync -rtiv -e "ssh -p 22" /chemin/local/ dk00xxxx@ssh.dedikam.com:CHEMIN_DISTANT_EXISTANT/What to expect
The command should finish without errors. Download and open a test document. The -rt options preserve the directory structure and timestamps without asking rsync to copy ownership or special files.
Automate subsequent syncs
Schedule syncs only after a successful test, using an authorised key and an error log. These examples omit --delete, so files missing from the source stay at the destination. A sync alone cannot provide backup history.
If something looks wrong
If rsync is unavailable or blocked on the server, contact support or use SFTP. If the path is rejected, check it over SSH. After uploading outside Nextcloud, you may need to run a rescan.
Reference documentation
Need a hand?
Tell us which storage account or service is affected and what message you see. Our team will help.
Sign in to contact support