Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a directory on remote VPS (/backuptest) with a archive in it (/backuptest/Friday.tar.gz2).

I am trying to use rsync to connect to the VPS and download the archive to my local machine (/mnt/Files_Local/backup/VPS).

Each time I try to connect using my rsync command, nothing gets transferred?

rsync -avz -H --numeric-ids --delete -e "ssh -p ## root@{host}:/backuptest -l root" /mnt/Files_Local/backup/VPS
sending incremental file list
drwxr-xr-x        4096 2013/05/17 16:47:52 VPS

sent 37 bytes  received 13 bytes  100.00 bytes/sec
total size is 0  speedup is 0.00

A verbose output gives:

rsync -avvz -H --numeric-ids --delete -e "ssh -p ## root@{host}:/backuptest -l root" /mnt/Files_Local/backup/VPS
sending incremental file list
delta-transmission disabled for local transfer or --whole-file
drwxr-xr-x        4096 2013/05/17 16:54:53 VPS
total: matches=0  hash_hits=0  false_alarms=0 data=0

sent 37 bytes  received 13 bytes  100.00 bytes/sec
total size is 0  speedup is 0.00
share|improve this question

Fixed it, turns out I hadn't closed the quotes for options before defining the source (I was mistakenly defining the source as an OPTION.

Therefore script should be:

wrong

rsync -avvz -H --numeric-ids --delete -e "ssh -p ## root@{host}:/backuptest -l root" /mnt/Files_Local/backup/VPS

right

rsync -avvz -H --numeric-ids --delete -e "ssh -p ## -l root" "root@{host}:/backuptest" /mnt/Files_Local/backup/VPS
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .