Search code examples
bashubuntubackuprsyncpem

Rsync, incremental file list output but no actual copying


I'm running the following command, with the intention of recreating the contents of (sync) on the remote server.

sudo rsync -avrz /path/to/sync/ -e "ssh -i ../keys/my.pem [email protected]:/path/to/sync/"

However, when I run this I get a "sending incremental file list" output and a list of the files which should be copied. Nothing actually gets written to the remote server.

Any idea what I'm doing wrong? Thanks...


Solution

  • Try this

    sudo rsync -avrz /path/to/sync/ -e "ssh -i ../keys/my.pem" [email protected]:/path/to/sync/
    

    Note the place of the second " character. There is no remote address specified in the previous command.