Rsync Remote To Local Issue

icebox3d

I was wondering if I could get some help with this rsync command. I am trying to copy files from a remote system by running rsync on the local system.

Here is my command:

/usr/bin/rsync -avz serverbackup@SERVERIP:/home/serverrestore/game1/20132508.tar.gz /home/username/game1/ 'ssh -i /etc/claire/key'

However I am getting this error here:

Unexpected local arg: /home/nharasym/game257/
If arg is a remote file/dir, prefix it with a colon (:).
rsync error: syntax or usage error (code 1) at main.c(1246) [Receiver=3.0.9]

Any ideas on how to solve this problem?

Kent

You are missing -e argument before the ssh code, and also, it should be before the source and destination. The following command should work (provided the permissions on the key file and enclosing directory are satisfactorily secured per the standard requirements of ssh)

/usr/bin/rsync -avz -e 'ssh -i /etc/claire/key' serverbackup@SERVERIP:/home/serverrestore/game1/20132508.tar.gz /home/username/game1/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"rsync" from remote to local

From Dev

"rsync" from remote to local

From Dev

rsync copies to local instead of remote

From Dev

rsync copies to local instead of remote

From Dev

rsync expanding remote directory with local username?

From Dev

Differences between rsync on remote and rsync local on mounted sshfs?

From Dev

Query: rsync - Copying Local folder to Remote Server from Remote Server

From Dev

rsync -- command-line for syncing from local to remote over ssh

From Dev

rsync Permission denied backing up a remote directory to my local machine

From Dev

Using rsync to copy from local to remote server with cronjob, asking for password

From Dev

what is the default speed in rsync to send from local to remote machine?

From Dev

Rsync all csv files from remote machine to local machine

From Dev

Go workspace issue: how to differ local packages from remote packages?

From Dev

Git push force issue - Unable to force local changes on top of remote

From Dev

Issue while executing IMPDP command from local server on remote server

From Dev

SSH into remote machine, run find command, then rsync the results of the find back to the local machine?

From Dev

using rsync to distinguish between files that are different on local vs remote vs files that exist on one but not the other

From Dev

i want to copy a directory from my local system to a remote machine using rsync

From Dev

How does rsync distinguish between destination being a local directory with ':' and '@' in the dirname, or a remote SSH?

From Dev

Remote rsync in parallel

From Dev

Remote rsync in parallel

From Dev

rsync to multiple remote servers

From Dev

rsync without remote having it

From Dev

rsync - unexpected remote arg

From Dev

rsync to remote directory

From Dev

rsync remote files over SSH to my local machine, using sudo privileges on local side, and my personal SSH key

From Dev

Issue with rsync/cwrsync on windows

From Dev

rsync ssh to ssh to local

From Dev

Unexpected local arg: /rsync

Related Related

  1. 1

    "rsync" from remote to local

  2. 2

    "rsync" from remote to local

  3. 3

    rsync copies to local instead of remote

  4. 4

    rsync copies to local instead of remote

  5. 5

    rsync expanding remote directory with local username?

  6. 6

    Differences between rsync on remote and rsync local on mounted sshfs?

  7. 7

    Query: rsync - Copying Local folder to Remote Server from Remote Server

  8. 8

    rsync -- command-line for syncing from local to remote over ssh

  9. 9

    rsync Permission denied backing up a remote directory to my local machine

  10. 10

    Using rsync to copy from local to remote server with cronjob, asking for password

  11. 11

    what is the default speed in rsync to send from local to remote machine?

  12. 12

    Rsync all csv files from remote machine to local machine

  13. 13

    Go workspace issue: how to differ local packages from remote packages?

  14. 14

    Git push force issue - Unable to force local changes on top of remote

  15. 15

    Issue while executing IMPDP command from local server on remote server

  16. 16

    SSH into remote machine, run find command, then rsync the results of the find back to the local machine?

  17. 17

    using rsync to distinguish between files that are different on local vs remote vs files that exist on one but not the other

  18. 18

    i want to copy a directory from my local system to a remote machine using rsync

  19. 19

    How does rsync distinguish between destination being a local directory with ':' and '@' in the dirname, or a remote SSH?

  20. 20

    Remote rsync in parallel

  21. 21

    Remote rsync in parallel

  22. 22

    rsync to multiple remote servers

  23. 23

    rsync without remote having it

  24. 24

    rsync - unexpected remote arg

  25. 25

    rsync to remote directory

  26. 26

    rsync remote files over SSH to my local machine, using sudo privileges on local side, and my personal SSH key

  27. 27

    Issue with rsync/cwrsync on windows

  28. 28

    rsync ssh to ssh to local

  29. 29

    Unexpected local arg: /rsync

HotTag

Archive