Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Backup Solutions for Mac OS X?

Posted by Cliff on Sat Dec 16, 2006 03:50 AM
from the software-insurance-policies dept.
SpartanVII asks: "I purchased a Mac roughly two years ago and have made the switch with a fair amount of ease. However, one thing that has troubled me is how best to backup my important data to an external hard drive. Right now, I have rigged up an Automator workflow that runs every night, but I have also seen software options like SuperDuper and Knox. Since the Automator workflow lacks much of the flexibility and features available with these apps, I am ready to try something else. What app have you come across that provides the best backup solution?"
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by dbc (135354) on Saturday December 16 2006, @03:55AM (#17266648)
    it's unix. except that cron isn't useful on a system that sleeps, and launchd is badly broken in several painful ways. anacron is supposed to be good, but i haven't looked into it.
    • launchd is badly broken in several painful ways

      How so?
    • Re: (Score:3, Interesting)

      If his system is 2 yrs old, it could be Panther. That means using rsyncX instead of rsync; it's what I use. If you want snapshot-like backups from rsync, then use rsnapshot (it uses rsync, so on a pre-10.4 system you'll need to replace rsync with the rsyncX version).

      If Leopard is on the horizon, then just use the Timewarp(?) snapshot tool built into the OS.

      If you want a full image backup done efficiently, then CCC (Carbon Copy Cloner) is the free GUI tool of choice.

      Other great options: DAR, rdiff-backup, Un
      • by xil (151104) on Saturday December 16 2006, @04:44AM (#17266880)
        On OS X, rsync -E will copy resource forks and extended attributes. Works fine for backup.
        • by iangoldby (552781) on Saturday December 16 2006, @06:13AM (#17267176) Homepage
          Here's my script. This is an amalgamation of several ideas that I easily found by searching the web. It keeps the last three copies, using links to avoid copying or storing twice any file that hasn't changed.

          #!/bin/sh
           
          # To use Apple's rsync switch commented lines below
          # To use rsyncx:
          # RSYNC=/usr/local/bin/rsync --eahfs --showtogo
          # To use built-in rsync (OS X 10.4 and later):
          RSYNC="/usr/bin/rsync -E -v"
           
          DEST=/Volumes/Backups
           
          # Function for toggling Spotlight indexing
          spotlight_switch()
          {
          /usr/bin/mdutil -i $1 /
          # /usr/bin/mdutil -i $1 /Volumes/Backups
          }
           
          # sudo runs the backup as root
          # --eahfs enables HFS+ mode
          # -a turns on archive mode (recursive copy + retain attributes)
          # -x don't cross device boundaries (ignore mounted volumes)
          # -S handle sparse files efficiently
          # --showtogo shows the number of files left to process
          # --delete deletes any files that have been deleted locally
          # $* expands to any extra command line options you may give
           
          # make sure we're running as root
          # id options are effective (u)ser ID
          if (( `id -u` != 0 )); then
          { echo "Sorry, must be root. Exiting..."; exit; }
          fi;
           
          ! test -d $DEST && echo "Please mount the backup drive!" && exit
          spotlight_switch off
           
          rm -rf $DEST/backup.2
          mv $DEST/backup.1 $DEST/backup.2
          mv $DEST/backup $DEST/backup.1
           
          $RSYNC -a -x -S --delete --link-dest=../backup.1 \
              --exclude-from backup_excludes.txt $* / /Volumes/Backups/backup
           
          # make the backup bootable - comment this out if needed
           
          bless -folder $DEST/backup/System/Library/CoreServices
           
          spotli ght_switch on
          My excludes file:

          /tmp/*
          /Network/*
          /cores/*
          */.Trash
          /afs/*
          /a utomount/*
          /private/tmp/*
          /private/var/run/*
          /p rivate/var/spool/postfix/*
          /private/var/vm/*
          /Pr evious Systems.localized
          .Spotlight-*/
          /Users/*/Library /Caches
          The only 'issue' is that I don't seem to be able to boot from the backup, but this may be no bad thing, given that a backup is not supposed to be a mirror, nor a mirror a backup.

          Any suggestions (or flames as to why my backup strategy will fail catastrophically) welcomed!

          [[Your comment has too few characters per line (currently 25.1). Aenean orci mi, lacinia varius, varius in, suscipit ut, purus. Donec pharetra lorem nec odio. Mauris accumsan sem non pede. Etiam pulvinar eros at massa. Curabitur consectetuer. Pellentesque imperdiet cursus diam. Sed tincidunt nunc. Donec fermentum, nisl at hendrerit mollis, turpis leo consequat elit, volutpat condimentum velit augue facilisis nisl. Vestibulum dapibus ligula non turpis. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla risus lorem, aliquet imperdiet, accumsan id, aliquet vel, tellus. Quisque mi dui, pulvinar ut, iaculis pharetra, rutrum eget, nisl. Aliquam et erat in sem dapibus vehicula. Curabitur rhoncus ipsum id dui. Nullam venenatis. Phasellus vitae sapien quis pede ultrices mollis.]]
        • by sribe (304414) on Saturday December 16 2006, @11:28AM (#17268662)
          On OS X, rsync -E will copy resource forks and extended attributes. Works fine for backup.

          If you don't mind resetting creation and modification times of every file (not just changed ones) on the backup every time you backup.

          rdiff-backup creates and maintains a copy of not only the current data but also keeps reverse diffs so you can recover old versions too.

          It's extremely fragile. Any interruption in any backup and it will leave things in a state where manual cleanup and starting the backup over from scratch is required.

          Retrospect will compress the data to save drive space, and it allows you to restore via a date of your choice.

          It works great when it works. But it also has a nasty tendency to corrupt its catalog files, forcing you to run a "repair" operation on you backups. For disk-based backups this is not too bad since it just takes time; for tape you get to feed in all the tapes in the set so it can read them. This bug has persisted across at least 3 paid upgrades now. Not everybody experiences it, and I don't know what conditions trigger it, but I've seen it at multiple sites with different setups.

          As for SuperDuper, I've heard only good things about it. Seems to be a very solid little product for individual backup. I haven't tried it because I need network backup for multiple machines. (I'm so frustrated I'm about 90% of the way to deciding to write my own!)

  • backups (Score:2, Informative)

    I use RsyncX (http://archive.macosxlabs.org/rsyncx/rsyncx.html) on the OSX server (10.3) in a lab I do some work in. It works well, and you can just set up cron jobs. Last I checked, the Rsync that comes with OSX wouldn't handle resource forks, which is why a third-party app is necessary. This may be fixed in newer versions of OSX, but since the lab isn't upgrading until 10.5 is released I have no experience with 10.4.
  • rdiff-backup (Score:3, Informative)

    by swillden (191260) * <shawn-ds@willden.org> on Saturday December 16 2006, @04:04AM (#17266690) Homepage Journal

    rdiff-backup creates and maintains a copy of not only the current data but also keeps reverse diffs so you can recover old versions too. You can backup to another hard driver or directory, or over a network. For remote backups, it uses the rsync protocol so it only transmits changes.

    It's a command-line tool, so it's not very OSX'y, but it works very, very well. I use it to back up all of my machines, including some remote servers. I do it all with cron jobs, and all over network links, because that way I can just ignore it, but you can also run it manually if you prefer.

  • I'm a big fan of SuperDuper! since it's trivial to use, does incremental backups and you don't have to worry about missing files or applications if you mirror your entire hard drive.

    If you have a firewire external hard drive, you can have SuperDuper! backup your computer's drive to it and if you should ever want to step back to your last backup or lose your laptop's hard drive, all you have to do is plug in the external drive, press option while you are starting up your mac, boot from the external drive, ru
    • Re: (Score:2, Interesting)

      SuperDuper! is for people that don't want to take the time to mess with shellscripts and cronjobs and such. Back up everything with almost no options and nothing to screw up. If you wanted to muck around with shellscript and rsync backup solutions, you probably wouldn't be asking here. I installed SuperDuper for my boss and did a couple backups for her (never had to restore), and it seems like a wonderful piece of software.
  • I'd rather not use a backup solution "for Mac OS X". Instead, I'd use a solution that works on multiple platforms. The main argument for this is that I can still use the solution and access my old backups when I decide to switch platforms (and, consequently, that the backup solution isn't an impediment to switching). I also have the feeling that if software is used and maintained on multiple platforms, there is a lesser chance of it just being end-of-lifed one day than if the software is just for one platfo
    • So what DO you use? I agree with what you are saying but.....
    • Re: (Score:3, Interesting)

      Most backup programs just copy the files, so you are in no way tight to, or dependant on such program. I do avoid programs like Retrospect, which compress the backups, forcing you to also use the program for restoring of browsing your backup data.
  • Retrospect (Score:3, Insightful)

    by MrGHemp (189288) on Saturday December 16 2006, @04:29AM (#17266812) Homepage
    http://www.emcinsignia.com/ [emcinsignia.com]

    We use it to back up our web and database servers. The high end products might be over kill but the Express version might do you right. Retrospect will compress the data to save drive space, and it allows you to restore via a date of your choice. Lots of scheduling and etc options. Works like a champ.
  • Although it is on the expensive end of the backup software scale, Synchronize Pro X [qdea.com] is extremely versatile and has saved my bacon through a series of drive failures (that resulted in Apple replacing my PowerBook). I currently have it running 4 different scheduled backups on my system and have another backup set up that activates when I attach a certain thumb drive: it syncs a selected group of folders to the thumb drive and then unmounts the drive automatically. Plug, sync, unplug--very cool.
  • by perlionex (703104) * <joseph @ g a n f a m i l y .com> on Saturday December 16 2006, @04:58AM (#17266934) Homepage
    I use rsnapshot [rsnapshot.org]. It's written in Perl, and uses rsync, so it should work on Mac OS X as well as it does on my Linux box. It's pretty configurable, and rotates backups hourly, daily, weekly, monthly, etc. It uses filesystem hardlinks to do incremental backups.
  • by Fulkkari (603331) on Saturday December 16 2006, @05:11AM (#17266996)

    I don't know about right now, but once Leopard comes out, I guess it would be Time Machine [apple.com]. Just wait until it starts shipping in the beginning of the next year.

    If you don't want to wait or upgrade, write a shell script doing the job for you. I don't know what kind of experiences others have had with backup tools on the Mac, but Retrospect kept crashing on me when trying to run it. I wouldn't trust that kind of software to keep track of my backups. So I guess it's pretty much shell scripts or nothing right now.

  • Required reading (Score:4, Informative)

    by pesc (147035) on Saturday December 16 2006, @06:21AM (#17267204)
    Backup on Mac is not as easy as one would think...

    http://blog.plasticsfuture.org/2006/03/05/the-stat e-of-backup-and-cloning-tools-under-mac-os-x/ [plasticsfuture.org]
    http://blog.plasticsfuture.org/2006/04/23/mac-back up-software-harmful/ [plasticsfuture.org]

    Maybe TimeMachine will offer an interesting solution...

    http://www.apple.com/se/macosx/leopard/timemachine .html [apple.com]
  • by wembley fraggle (78346) on Saturday December 16 2006, @08:56AM (#17267798) Homepage
    I used the Backup application from dotMac faithfully for over a year. Ran well every night, backing up my system. Then, my computers were stolen. No problem, they were insured and I had a backup. These things happen. I got my new Macintosh and went to Backup.app to restore. Selected everything and hit restore.

    Backup crashed.

    Tried again. Crashed again.

    Backup won't restore more than one or two files at a time without crashing. It seems to be a memory leak, as it dies during a memory allocation routine. Granted, I had a lot of files and a lot of incrementals. But this is the JOB OF BACKUP! To be able to RESTORE my FILES! The files are there, I can see them (each backup file has a disk image inside it which you can mount manually). I just can't get at them systematically.

    So, I contacted Tech Support. Got something like "wow, that's strange", sent my logs and such. It's been two weeks and I've heard nothing. My followup emails go into the bit-bucket.

    By now, it would have been easier for me to have spent the last four nights manually mounting disk images and copying files over by hand.

    Needless to say, I'm going with Retrospect as soon as I have something to backup again. Cancelling my dotMac account too.
    • Re: (Score:3, Informative)

      That's a major bummer. My experience is quite different, over the last couple of years I've used dotMac Backup.app three or four times to restore things, and it's worked just fine.
  • by Rick Zeman (15628) on Saturday December 16 2006, @09:37AM (#17268000)
    I back up my desktop, my PB, the wife's PB, my Dell, and my Linux server to an extra hard drive in my Desktop. Always been able to restore files that I've needed, and I've had to do one bare metal restore of my PB. Did a barebones install of 10.4.x on it, added the Retro client, clicked the mouse a few times...and came back to MY perfectly functioning PowerBook. A lot of people here will sneer at a commercial solution, but that restore paid for the software in my time and aggravation not spent.
  • Oh no, not again... (Score:5, Informative)

    by gidds (56397) <slashdot AT gidds DOT me DOT uk> on Saturday December 16 2006, @09:41AM (#17268016) Homepage
    This seems to have been discussed in many places over the last couple of months.

    I'm no expert, but I can point you to a couple of interesting web pages by people who do seem to know a lot of the details:

    In short, there are lots of different backup and cloning tools, from the Unix cp, ditto, and rsync commands up to the free Carbon Copy Cloner [bombich.com], cheap SuperDuper! [shirt-pocket.com], and expensive Retrospect [emcinsignia.com]. And very few of them preserve everything. HFS+ carries a lot of baggage from the old Mac OS, and adds a lot more stuff from Unix: there are resource forks, HFS+ extended attributes, BSD flags such as creation date and owner/group permissions, ACLs, symbolic links, aliases, and lots more -- and almost none of the options can preserve all of those.

    You also need to think about what your backups are for and how much time and money you're prepared to expend: for some, burning a few personal files to CDR every few months will suffice, whereas for others an external HD holding a complete clone is the thing, and power users may need daily or weekly incremental backups with the ability to retrieve any file going back years.

    Personally speaking, I'm in the middle category, with a large external Firewire HD holding a clone of each of my drives, which I redo every month or so. (Having it bootable is also a good idea, and has saved my bacon at least once!) I've mostly been using Carbon Copy Cloner, which has given good results, but I've recently switched to SuperDuper! which is cheap and seems to preserve absolutely everything. But don't take my word for it: read the linked pages, work out your needs, and make up your own mind.

    But DO think about it! Disaster WILL strike in some form or other; disks DO fail (as I know to my cost), and you need to plan for it. It's not a question of how much time or money you can afford to spend; it's a question of how much data you can afford to lose!

  • by k3v0 (592611) <k3v0@[ ]0.net ['k3v' in gap]> on Saturday December 16 2006, @10:20AM (#17268262) Homepage Journal
    you can set it to back up over the network or to another drive, you can specify manual or automatic, and you can schedule different backups at different times. it's easy and quick.
    • I have done something like this - I run dual raid (mirrored) drives on my main computer. It would be nice to have a similar method for the laptop....