Mike, I run a script which I think is somewhat complex but more complete for backing up web and other folders. I use a tar and rsync combination, have current and 14 days rolling backup and use two different scripts, one on the server and one on a machine that pulls the files from the server as the backup machine. I'd be happy to forward them to you. mike hoy wrote: > Hi, > > I'm running a webserver and decided to back it up using a crontab. > > But first I need a good shell script for crontab to execute. > > I created this shell script: > > Can someone look at this is give a bit of advice. > > #!/bin/bash > > echo "beginning to copy files..." > > cp -R * /mnt/DesktopBackup/website/ > > echo "done copying files..." > > I run this script from inside of my web directory. which is the source > of the backup. > > Question: is the -R what allows me to copy folders and their > subdirectories?? or is their a better way to do this? > > I have lots of folders within folders within folders... it's a mess. > > > > > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change you mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss