Results 1 to 12 of 12
  1. #1
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    Brew, rsync and command line errors . . .
    Im trying to sync my Aperture Library.aplibrary to a Ext HD so I can have the Ext HD as my master and then sync a new Temp Library when I do a shoot and have new images to add to it. I will then sync the Master to Backup1 and a Backup 2 if $ lets me.

    Im doing this via rsync and I have installed Brew and run brew doctor and all seemed good.
    I then went and ran this command
    Code:
    sudo rsync -a –delete “/Macintosh HD/Users/TatooedMac/Pictures/Aperture*Library.aplibrary” “/Volumes/Aperture Master/”
    and got a error of
    Code:
    TattooedMacs-iMac:~ TattooedMac$ sudo rsync -a –delete “/Users/TatooedMac/Pictures/Aperture*Library.aplibrary” “/Volumes/Aperture Master/”
    rsync: link_stat "/Users/TattooedMac/?\#200\#223delete" failed: No such file or directory (2)
    rsync: link_stat "/Users/TattooedMac/?\#200\#234/Macintosh" failed: No such file or directory (2)
    rsync: link_stat "/Users/TattooedMac/HD/Users/TatooedMac/Pictures/Aperture*Library.aplibrary?\#200\#235" failed: No such file or directory (2)
    rsync: link_stat "/Users/TattooedMac/?\#200\#234/Volumes/Aperture" failed: No such file or directory (2)
    rsync: push_dir#3 "/Users/TattooedMac/Master" failed: No such file or directory (2)
    rsync error: errors selecting input/output files, dirs (code 3) at /SourceCache/rsync/rsync-42/rsync/main.c(580) [receiver=2.6.9]
    rsync: connection unexpectedly closed (8 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
    TattooedMacs-iMac:~ TattooedMac$
    Where did I go wrong please ??
    Im sure Brew is installed correctly and this is the path that I'm sure I should of written as my Aperture Library is @ /Users/TattooedMac/Pictures/Aperture Library.aplibrary and the External HDD should be /Volumes/Aperture Master/.

    Now please bare with me, as I'm still learning the command line, but I'm wondering, did it throw up a error, because I didn't close out the /Users/TattooedMac/Pictures/Aperture Library.aplibrary with a / inside the "quotes" ?? And I believe I needed the " because of the spaces within the path ??
    Is this making sense ??
    Thanks Van, cradom, Razor or any other command Unix guru

    EDIT: Why is there a * in the first path between the Library and Library.aplibrary ?? I didn't put it there ?!?!?
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  2. #2
    Brew, rsync and command line errors . . .
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    I don't think you need to escape the whole path, just the part with the space. For example:
    sudo rsync -a –delete ~/Pictures/'Aperture Library.aplibrary' /Volumes/'Aperture Master'/

    Don't know where the * came from either.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  3. #3
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    Thanks Craig, but still returned a error

    rsync: link_stat "/Users/TattooedMac/?\#200\#223delete" failed: No such file or directory (2)

    Less of a error than the 1st path but still :-<
    ??
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  4. #4
    Brew, rsync and command line errors . . .
    XJ-linux's Avatar
    Member Since
    Jul 02, 2007
    Location
    Going Galt...
    Posts
    3,418
    Specs:
    MacBookAir5,2:10.9.5-MacMini3,1:10.9.5-iPhone6,1:8.3
    Is the Aperature library a "bundle" or single object like an iPhoto library or iso image?
    Never judge a man, untill you have walked a mile in his shoes...
    That way you'll be a mile away from him, and you'll have his shoes.

  5. #5
    Brew, rsync and command line errors . . .
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    Good point, didn't think of that.

    Edit: rereading first post: what does homebrew have to do with this? Did you install a newer version of rsync?
    Last edited by cradom; 03-24-2014 at 09:41 AM.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  6. #6
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    Quote Originally Posted by XJ-linux View Post
    Is the Aperature library a "bundle" or single object like an iPhoto library or iso image?
    Its a Library like iPhoto as in Aperture Library.aplibrary

    Quote Originally Posted by cradom View Post
    Good point, didn't think of that.

    Edit: rereading first post: what does homebrew have to do with this? Did you install a newer version of rsync?

    Because I followed the instructions from here, which came from the Tips Section in Aperture Expert here.

    Obviously with that question, I didn't need Brew, and I gathered that from the first link, but it seemed the easiest way to do it for me, and from what Walter talked about in his post over on AE it would of been the easiest.

    In that case then, how do I go about uninstalling Brew, rsync and starting from scratch to be able to sync my Aperture Library, from ~/Pictures/ to my External HDD ??

    Cheers

    EDIT : I happen to install Python 3.3.5 only the day before, would this make any difference ??
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  7. #7
    Brew, rsync and command line errors . . .
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    Ok. First lets see which rsync you're using:
    $ which rsync
    It 'should' be the one installed by brew. No need to uninstall brew. You should have the latest rsync now (mavericks has 2.6.9 as opposed to 3.0)

    Now, personally, I would rename things so there isn't any spaces in the path. Makes things easier.

    Actually, the iphoto library is a bundle too. Right-click on it. You can open contents.
    If you don't get "open contents" when you right-click on the Aperture library (don't know, never used it) that might be the problem.
    That command is copying a folder, not just the contents, hence no trailing / in the first path, into another folder, so a trailing / in the second path. So that's correct.

    And right now I have about 2 minutes to get ready for work so will continue when I get there in another post.
    I think it's a path problem.
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  8. #8
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    I ran which rsync and got back /usr/bin/rsync
    I went to the path and right clicked 'open with' and it came up with 2.6.9

    Code:
    Last login: Tue Mar 25 17:42:33 on ttys000
    TattooedMacs-iMac:~ TattooedMac$ /usr/bin/rsync ; exit;
    rsync  version 2.6.9  protocol version 29
    Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others.
    <http://rsync.samba.org/>
    Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
                  inplace, IPv6, 64-bit system inums, 64-bit internal inums
    
    rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
    are welcome to redistribute it under certain conditions.  See the GNU
    General Public Licence for details.
    
    rsync is a file transfer program capable of efficient remote update
    via a fast differencing algorithm.
    
    Usage: rsync [OPTION]... SRC [SRC]... DEST
      or   rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
      or   rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
      or   rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
      or   rsync [OPTION]... [USER@]HOST:SRC [DEST]
      or   rsync [OPTION]... [USER@]HOST::SRC [DEST]
      or   rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
    The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect
    to an rsync daemon, and require SRC or DEST to start with a module name.
    
    Options
     -v, --verbose               increase verbosity
     -q, --quiet                 suppress non-error messages
         --no-motd               suppress daemon-mode MOTD (see manpage caveat)
     -c, --checksum              skip based on checksum, not mod-time & size
     -a, --archive               archive mode; same as -rlptgoD (no -H)
         --no-OPTION             turn off an implied OPTION (e.g. --no-D)
     -r, --recursive             recurse into directories
     -R, --relative              use relative path names
         --no-implied-dirs       don't send implied dirs with --relative
     -b, --backup                make backups (see --suffix & --backup-dir)
         --backup-dir=DIR        make backups into hierarchy based in DIR
         --suffix=SUFFIX         set backup suffix (default ~ w/o --backup-dir)
     -u, --update                skip files that are newer on the receiver
         --inplace               update destination files in-place (SEE MAN PAGE)
         --append                append data onto shorter files
     -d, --dirs                  transfer directories without recursing
     -l, --links                 copy symlinks as symlinks
     -L, --copy-links            transform symlink into referent file/dir
         --copy-unsafe-links     only "unsafe" symlinks are transformed
         --safe-links            ignore symlinks that point outside the source tree
     -k, --copy-dirlinks         transform symlink to a dir into referent dir
     -K, --keep-dirlinks         treat symlinked dir on receiver as dir
     -H, --hard-links            preserve hard links
     -p, --perms                 preserve permissions
         --executability         preserve the file's executability
         --chmod=CHMOD           affect file and/or directory permissions
     -o, --owner                 preserve owner (super-user only)
     -g, --group                 preserve group
         --devices               preserve device files (super-user only)
         --specials              preserve special files
     -D                          same as --devices --specials
     -t, --times                 preserve times
     -O, --omit-dir-times        omit directories when preserving times
         --super                 receiver attempts super-user activities
     -S, --sparse                handle sparse files efficiently
     -n, --dry-run               show what would have been transferred
     -W, --whole-file            copy files whole (without rsync algorithm)
     -x, --one-file-system       don't cross filesystem boundaries
     -B, --block-size=SIZE       force a fixed checksum block-size
     -e, --rsh=COMMAND           specify the remote shell to use
         --rsync-path=PROGRAM    specify the rsync to run on the remote machine
         --existing              skip creating new files on receiver
         --ignore-existing       skip updating files that already exist on receiver
         --remove-source-files   sender removes synchronized files (non-dirs)
         --del                   an alias for --delete-during
         --delete                delete extraneous files from destination dirs
         --delete-before         receiver deletes before transfer (default)
         --delete-during         receiver deletes during transfer, not before
         --delete-after          receiver deletes after transfer, not before
         --delete-excluded       also delete excluded files from destination dirs
         --ignore-errors         delete even if there are I/O errors
         --force                 force deletion of directories even if not empty
         --max-delete=NUM        don't delete more than NUM files
         --max-size=SIZE         don't transfer any file larger than SIZE
         --min-size=SIZE         don't transfer any file smaller than SIZE
         --partial               keep partially transferred files
         --partial-dir=DIR       put a partially transferred file into DIR
         --delay-updates         put all updated files into place at transfer's end
     -m, --prune-empty-dirs      prune empty directory chains from the file-list
         --numeric-ids           don't map uid/gid values by user/group name
         --timeout=TIME          set I/O timeout in seconds
     -I, --ignore-times          don't skip files that match in size and mod-time
         --size-only             skip files that match in size
         --modify-window=NUM     compare mod-times with reduced accuracy
     -T, --temp-dir=DIR          create temporary files in directory DIR
     -y, --fuzzy                 find similar file for basis if no dest file
         --compare-dest=DIR      also compare destination files relative to DIR
         --copy-dest=DIR         ... and include copies of unchanged files
         --link-dest=DIR         hardlink to files in DIR when unchanged
     -z, --compress              compress file data during the transfer
         --compress-level=NUM    explicitly set compression level
     -C, --cvs-exclude           auto-ignore files the same way CVS does
     -f, --filter=RULE           add a file-filtering RULE
     -F                          same as --filter='dir-merge /.rsync-filter'
                                 repeated: --filter='- .rsync-filter'
         --exclude=PATTERN       exclude files matching PATTERN
         --exclude-from=FILE     read exclude patterns from FILE
         --include=PATTERN       don't exclude files matching PATTERN
         --include-from=FILE     read include patterns from FILE
         --files-from=FILE       read list of source-file names from FILE
     -0, --from0                 all *-from/filter files are delimited by 0s
         --address=ADDRESS       bind address for outgoing socket to daemon
         --port=PORT             specify double-colon alternate port number
         --sockopts=OPTIONS      specify custom TCP options
         --blocking-io           use blocking I/O for the remote shell
         --stats                 give some file-transfer stats
     -8, --8-bit-output          leave high-bit chars unescaped in output
     -h, --human-readable        output numbers in a human-readable format
         --progress              show progress during transfer
     -P                          same as --partial --progress
     -i, --itemize-changes       output a change-summary for all updates
         --out-format=FORMAT     output updates using the specified FORMAT
         --log-file=FILE         log what we're doing to the specified FILE
         --log-file-format=FMT   log updates using the specified FMT
         --password-file=FILE    read password from FILE
         --list-only             list the files instead of copying them
         --bwlimit=KBPS          limit I/O bandwidth; KBytes per second
         --write-batch=FILE      write a batched update to FILE
         --only-write-batch=FILE like --write-batch but w/o updating destination
         --read-batch=FILE       read a batched update from FILE
         --protocol=NUM          force an older protocol version to be used
     -E, --extended-attributes   copy extended attributes
         --cache                 disable fcntl(F_NOCACHE)
     -4, --ipv4                  prefer IPv4
     -6, --ipv6                  prefer IPv6
         --version               print version number
    (-h) --help                  show this help (-h works with no other options)
    
    Use "rsync --daemon --help" to see the daemon-mode command-line options.
    Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
    See http://rsync.samba.org/ for updates, bug reports, and answers
    rsync error: syntax or usage error (code 1) at /SourceCache/rsync/rsync-42/rsync/main.c(1318) [client=2.6.9]
    logout
    
    [Process completed]
    Im not sure what so ever why the 3.3.5 disnt install and if so where it is, as the Brew command ran correctly and gave me a process in % as it was installing.
    BUT I have 2.6.9 and this is my Aperture Library . . .
    And I have no problems getting rid of the spaces . .
    Attached Images Attached Images
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  9. #9
    Brew, rsync and command line errors . . .
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    Brew should be in a folder named opt, at the root of the drive. Evidently it didn't set up it's path in .bashrc.

    What you're looking for with a right-click is 'Show Package Contents" not "open with". Looking at your pic, it's a bundle. Fine.

    As far as the path, I don't know where my head's at this morning...drag and drop.
    type:
    $ rsync -a -delete
    and drag the file to the Terminal window. then press Space, and drag the destination folder to Terminal.
    Instant path, escaped correctly. Not really sure you need sudo for this?
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

  10. #10
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    Cool. Yea the "Show Package Contents" is under the "Open With" I just showed that for reference to the whole Contex Menu thing, but now understand that because its there, it makes it a Package.

    Im out at the moment, so when I get home ill give it a go, and ill be back with results.

    Thanks again Craig. I didn't know why I didn't think drop and drag either, but hey I'm still learning it
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  11. #11
    Brew, rsync and command line errors . . .
    TattooedMac's Avatar
    Member Since
    May 19, 2009
    Location
    Waiting for a mate . . .
    Posts
    8,379
    Specs:
    21" iMac 2.9Ghz 16GB RAM & 13"MBP 2.9Ghz i7 8GB RAM 10.10.3, iPhone5 & iPad Air 2 iOS 8.3, ATV3
    Champion effort Craig. It worked a dream, thanks for your time and patience mate. Virtual Rep mate +++ Need to spread the love first . . .

    Now just about there, a couple of questions if I may ?? Thx

    If I add a new Project in Aperture ie: Import new images into a new project in Aperture and I run this again, will it just change/sync the new material, or will it delete and sync the whole thing over again ??
    and 2ndly, whats the difference with in the first command above in #2 you gave me a double - before delete, and in this latest command its a single - . . . . Whats the difference with that ??

    Thanks mate
    Last edited by TattooedMac; 03-25-2014 at 10:50 PM.
    Dont forget to use the Reputation System if someone has helped you out !!!
    Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!
    MoTM ☆☆☆

  12. #12
    Brew, rsync and command line errors . . .
    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Nederland, Texas
    Posts
    4,081
    Specs:
    13in macbook - 10.10.4
    Typo, it's a double --
    I'm not that familiar with rsync, however...from the man file:
    Code:
     --delete
                  This  tells  rsync to delete extraneous files from the receiving
                  side (ones that aren't on the sending side), but  only  for  the
                  directories  that  are  being synchronized.  You must have asked
                  rsync to send the whole directory (e.g. "dir" or "dir/") without
                  using  a  wildcard  for  the directory's contents (e.g. "dir/*")
                  since the wildcard is expanded by the shell and rsync thus  gets
                  a  request  to  transfer individual files, not the files' parent
                  directory.  Files that  are  excluded  from  transfer  are  also
                  excluded from being deleted unless you use the --delete-excluded
                  option or mark the rules as only matching on  the  sending  side
                  (see the include/exclude modifiers in the FILTER RULES section).
    
                  Prior to rsync 2.6.7, this option would have  no  effect  unless
                  --recursive was in effect.  Beginning with 2.6.7, deletions will
                  also occur when --dirs (-d) is in effect, but only for  directo-
                  ries whose contents are being copied.
    
                  This  option can be dangerous if used incorrectly!  It is a very
                  good idea to run first using the --dry-run option  (-n)  to  see
                  what  files would be deleted to make sure important files aren't
                  listed.
    
                  If the sending side detects any I/O errors, then the deletion of
                  any  files  at  the  destination will be automatically disabled.
                  This is to prevent temporary filesystem failures  (such  as  NFS
                  errors)  on the sending side causing a massive deletion of files
                  on  the  destination.   You   can   override   this   with   the
                  --ignore-errors option.
    
                  The   --delete   option   may   be  combined  with  one  of  the
                  --delete-WHEN   options   without   conflict,   as    well    as
                  --delete-excluded.    However,  if  none  of  the  --delete-WHEN
                  options  are  specified,  rsync  will   currently   choose   the
                  --delete-before  algorithm.  A future version may change this to
                  choose the --delete-during algorithm.  See also  --delete-after.
    Looks like if it isn't in the source it gets deleted? You might want to look into the archive option or one of the other options. Maybe someone else will chime in?
    Craig Domingue
    (\__/)
    (='.'=) This is Bunny. Copy and paste Bunny into your
    (")_(") signature to help him gain world domination

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Compare OS X command line to Linux command line?
    By V6Pony in forum OS X - Development and Darwin
    Replies: 5
    Last Post: 09-26-2013, 12:32 PM
  2. Is there a command line like this?
    By Downy in forum OS X - Operating System
    Replies: 13
    Last Post: 02-27-2011, 04:29 PM
  3. Download from command line
    By plemax in forum OS X - Operating System
    Replies: 4
    Last Post: 11-28-2008, 01:05 PM
  4. OS X Command Line info
    By chscag in forum OS X - Operating System
    Replies: 1
    Last Post: 04-07-2008, 03:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •