anybody here good with rsync???

Discussion in 'Mac Apps and Mac App Store' started by boast, May 14, 2008.

  1. boast macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    Phoenix
    #1
    Code:
    macbook:~ $ rsync -ar -vv -e ssh "/Users/user/Pictures/*" user@10.0.0.3:/home/media/photos
    opening connection using ssh -l user 10.0.0.3 rsync --server -vvlogDtpr . /home/media/photos 
    Password: 
    building file list ... 
    link_stat "/Users/user/Pictures/*" failed: No such file or directory
    done
    any other way to do this??? I can't backup the folder, because folder names are different, so I just want to backup all the content that is in the server. :confused:
     
  2. aross99 macrumors 68000

    aross99

    Joined:
    Dec 17, 2006
    Location:
    East Lansing, MI
    #2
    I think the issue is in the way you are passing the list of files to backup. I have a remote volume (called miniStack) that I use to backup my Pictures like this:

    rsync -aE --delete ~/Pictures /Volumes/miniStack/backup

    Note that the volume has to be mounted, and it has a "Pictures" folder in the "backup" folder on the drive.

    I have not tried this with ssh, but I wonder if it would work without the * and different folder names:

    rsync -ar -vv -e ssh /Users/user/Pictures user@10.0.0.3:/home/media

    I think this would create a "Pictures" folder in your remote /home/media directory...

    As I said though - I haven't tried this with SSH...
     
  3. boast thread starter macrumors 65816

    boast

    Joined:
    Nov 12, 2007
    Location:
    Phoenix
    #3
    I figured out that if I leave the trailing slash, it has the same effect as the asterisk, and copies the files

    thanks for your effort, though.
     

Share This Page