backup


backup: A script to keep a syncronized copy of the chosen directories.  Only copies files that have been modified since last backup.

for UNIX systems, including OS X.  by N Resnikoff, 2004.

---------TO USE:

1. Examine the entries in the 'SETTINGS' section and adjust to suit.

2. If ScriptGUI is installed, launch from Finder; otherwise, run from terminal; no arguments needed. 


Download 'backup'     |      Software Page     |     Ned's Home Page


---------SETTINGS---------

$backupTo is the top-level backup directory.  The script will create directories within it that correspond to the source directories.

@sources is a list of directories to copy.  Invisible files & directories (those whose filenames start with a dot ('.') are copied also, unless, of course, they're on the blacklist.

@blacklist is a list of files & directories within the source tree to skip.  They can be listed in any order.  A simple way to create this list is to watch the output while running backup.  If it's copying something you don't want copied, cut-and-paste the filename or directory name from the output into the blacklist, and run again.


$apple: If 'yes', use CpMac instead of cp, to copy resource forks.  See caveats below.

$cull:    If 'no', directories in destination directory not matching ones in source directories will be left, instead of being removed.

$verbose: 0=silent, 1=basic, 2 & 3 are extra-wordy for debugging.

$test:    If 'yes', report what would be copied but don't copy.  Does, however, create directories.



---------CAVEATS---------

To use on Macs, you must have developer tools installed, or at least the utility /Developer/Tools/CpMac.

Can't copy filenames containing '$'..  not sure why.




This program is free software; you can redistribute it and/or modify it as you wish.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Download 'backup'     |      Software Page     |     Ned's Home Page