OSX User Backup Script

I just made a new rsync script for backing up user folders in osx as I got fed up with time machine grinding the harddrive & only really need to do full system backups periodically (ie- not everyday).

It’s based on my old linux home backup script but tweaked with some new variables and general bug fixes (like checking for input before trying to run a rsync).

#
# osx_user_backup  Copyright (C) 2011
# This program comes with ABSOLUTELY NO WARRANTY.
# This is free software, and you are welcome to redistribute it
# under certain conditions. See GNU GPLv3.
#
::  Starting Sync Process to: /Volumes/-snip-
::  Backing up Documents Folder
::  Documents Sync Complete
::  log saved to /-snip-/log.txt
::  Backing up Pictures Folder
::  Pictures Sync Complete
::  log saved to /-snip-/log2.txt

I noticed there are a lot of graphical rsync programs for osx but I like cli. Also you can set this up on a cron job.

No more drive grinding and it’s a lot quicker as it only syncs changes made.

Update:

osx backup growlThe script now has growl support. Mainly for use with cron jobs so you can get a simple notification of when a backup has taken place.

It’s pretty simple but the script saves log files so if there’s trouble you can still check those. Any suggestions on how to improve the script etc are appreciated as I’ve only just really moved from linux to osx so growl etc is new to me.

View/Download the script at github

Updated link: github