#If you can view Tek-tips, you should be able to view this URL. oh, well;
#Here's one of my backup scripts: I like to back up my source code only,
#eliminating any object files: (If you run from cron, make sure your $PATH is set in
# the script.
DIR="usr/tgg usr/ycc" #directories to backup, space-delimited
DEVICE="/tmp/cpio.lst"
OUTPUT="/tmp/output.list"
# back up usr/tgg & usr/sfc directory and
# skip any files named errlog, tags and extensions with 4go, o, frm
find $DIR -type f ! \( -name '*.4go' -o -name '*.o' -o -name '*.frm' -o -name tags -o -name 'errlog' \) -print |tee $OUTPUT| cpio -ocvdum > $DEVICE
# create a list of all files in output.list and create a cpio archive
# in /tmp/cpio.lst. Again, use at your risk.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.