It works, ran this as a test (second time so nothing new):
Code: Select all
andy@M720 ~ $ rsync -avzx --stats --delete --recursive --info=progress2 /home/andy/Downloads andy@diskstation.local:/volume1/homes/backup
andy@diskstation.local's password:
sending incremental file list
Downloads/
0 0% 0.00kB/s 0:00:00 (xfr#0, to-chk=0/506)
Number of files: 506 (reg: 478, dir: 28)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 37,569,989,812 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 14,565
Total bytes received: 54
sent 14,565 bytes received 54 bytes 2,249.08 bytes/sec
total size is 37,569,989,812 speedup is 2,569,942.53
It prompts for a password, my intention is to set this up as a script for backup running automatically as a cron job. Is there any way to pass the password in the command?
I did try (with the real pwd), but no joy:
Code: Select all
andy@M720 ~ $ rsync -avzx --stats --delete --recursive --info=progress2 /home/andy/Downloads andy:password@diskstation.local:/volume1/homes/backup
ssh: Could not resolve hostname andy: Name or service not known