Subscribe to
Posts
Comments
NSLog(); Header Image

psync on Intel Macs

Short story: it doesn't work. It's not Intel compatible (I downloaded the version from Mike Bombich).

Can't load '/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/MacOSX/File/Copy/Copy.bundle' for module MacOSX::File::Copy: dlopen(/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/MacOSX/File/Copy/Copy.bundle, 1): no suitable image found. Did find:
       /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/MacOSX/File/Copy/Copy.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.6/darwin-thread-multi-2level/DynaLoader.pm line 230.
 at /usr/local/bin/psync line 16
Compilation failed in require at /usr/local/bin/psync line 16.
BEGIN failed--compilation aborted at /usr/local/bin/psync line 16.

I've used psync for four years or so to back up one hard disk to another every night via a root cron job. It's saved me on several occasions when I had to boot to the other hard disk. In every situation case, it's worked beautifully.

Now, what? SuperDuper, I guess???

17 Responses to "psync on Intel Macs"

  1. That's the PPC version. To get the Intel version, use CPAN:

    sudo perl -MCPAN -e 'install MacOSX::File'

    Works like a charm on my MBP.

  2. [11:09am iacas@Bunny:~] % sudo perl -MCPAN -e 'install MacOSX::File'

    CPAN: Storable loaded ok

    Going to read /Users/iacas/.cpan/Metadata

      Database was generated on Thu, 28 Sep 2006 13:44:23 GMT

    MacOSX::File is up to date.

    [11:11am iacas@Bunny:~] % which psync

    psync: Command not found.

    Hmmm. 🙁 (And yes, all the necessary re-starting my terminal session, updating the locate database [to try to find it that way], etc. has been done. psync was not installed.)

  3. Just so you know, SuperDuper really is a great backup app. It's saved my ass a couple of times now. I know it's somewhat less than free (or Free, for that matter), but it's one of those apps I've never regretted buying. Something about the UI is just more reassuring to me than CLI backups 🙂

  4. Tom, I believe it. It's not the $27.95 with which I have a problem - it's more a matter of launching a GUI app to do something in the middle of the night. That's fundamentally odd to me. Silly reason, I know, but it's part of the reason I prefer the CLI approach.

    Currently I run two cron jobs. One under "iacas" to do user-level things (download some mysql database backups and install them on my local system, etc.) and one as root to do system-level things like update the locate database, do my backup, and so on.

  5. How about you email Mike and ask? 🙂

  6. No desire to do that, Paul. His site says "Site last modified 7/8/05."

  7. Eric, as far as I know, SuperDuper! can do automated backups. See this image: http://www.shirt-pocket.com/SuperDuper/graphics/SuperDuper-Scheduling.gif.

    You could always post on the forums as Dave Nanian is always there and provdes outstanding support.

  8. emd, I know it can do automated backups. It still has to launch a GUI app to do it. I will probably buy SuperDuper (just to have on hand) if I can pay via PayPal. I've already emailed the developer.

  9. how about RsyncX ??

    i have found it to be super fast and reliable to sync drives.
    i also use it to sync my iphoto library (50k files) between my powerbook and g5, it does this over ethernet in

  10. I use and like SuperDuper. There are two things I don't like about it:

    1. Although it does "smart" backups, it's only for saving time during the backup. That is, it backs up only changed files. However, it provides no versioning. I'd like my backup system to be like a source code repository (CVS, Subversion, etc), where I can go back in time to any previous version of an individual file or of the entire backup. As it is now, given that I do backups once per day, if something corrupts my system, or some app or document on my system, that corrupted version would overwrite the good version within a day (assuming the corruption itself didn't prevent the backup from running, of course). It appears as Time Machine in Leopard will offer this capability. But I'm unclear if Time Machine is going to allow complete system backups, or just user-level backups.

    2. You have to leave your account logged in for SuperDuper to work. This is because of the GUI. And it sucks, because I would prefer to logout of my account when I'm not using it.

  11. Rob, yeah, that's why I prefer psync. Alex, I've never had any reason to use RsyncX, and I've heard there are more headaches with that than with psync.

    After re-initializing CPAN (a few times :-P), psync is yet again installed and working, so I've found my solution - stay with the same thing. 🙂 I'll probably still buy SuperDuper if the developer can accommodate my wish to pay via PayPal (I have too much money there).

  12. How about plain old rsync?

  13. So, how do you like the new Mac Pro?

  14. My experience has been quite good, Kyle, thank you for asking. I plan to post something longer on the transition next week when I finally figure out whether to install Parallels or Boot Camp (and my extra 500 GB drive arrives).

    For now, I will say this: Migration Assistant kicks ass!

  15. MacOSX-File-0.71 download from CPAN website

    PSYNC Install Instructions

    INSTALLATION
    To install this module, first make sure Developer kit is
    installed. Then type the following:

    --> cd to MacOSX-File-0.71
    sudo chmod 777 Makefile.PL
    perl Makefile.PL
    make
    make test
    make install

    here is a bash script that will run the backup and email you when it's done (kick it off with a cron job):

    #! /bin/sh
    #-------------------------------------------------------------------------
    # 2005 Stuart Lawson
    # Works in OS X 10.4.1
    # This script uses PSYNC
    # PSYNC - Copyright 2002 Dan Kogai
    # MacOSX-File-0.71 download from CPAN
    #-------------------------------------------------------------------------

    #------- Edit variables here
    #-------------------------------------------------------------------------
    # User path to be archived
    MYFILES="/Users";

    # Path to volume where files wil be backed up
    MYBACKUP="/Volumes/externalDrive";

    # Email address to send status report to after PSYNC is done
    MYEMAIL="you@yourdomain.com";

    # Message in email sent when PSYNC fails to run
    FAILED="The PSYNC backup did not run because of an error.
    Either the backup external drive is not mounted
    or the file path names have been altered.";
    #-------------------------------------------------------------------------

    #------- Don't edit below here
    #-------------------------------------------------------------------------
    /usr/local/bin/psync -d $MYFILES $MYBACKUP >/psyncOut.txt;
    if grep -c "copying items" /psyncOut.txt
    then
    tr '\r' '\n' `date`" $MYEMAIL;
    rm /psyncOut.txt;
    else
    echo "$FAILED" | mail -s "Warning: Your backup script FAILED on ----> `date`" $MYEMAIL;
    rm /psyncOut.txt;
    fi
    #-------------------------------------------------------------------------

  16. [...] psync1 Terminal AppleScript2 MySQL Dock Window Styles Time Machine Spaces Cover Flow/QuickLook Overall Impressions Footnoteshttp://nslog.com/2006/09/28/psync_on_intel_macs↩http://nslog.com/2006/11/02/terminal_color_changing_via_applescript↩ [...]

  17. [...] ran into some problems compiling psync on Intel Macs initially, but then things went [...]