shell script for automated backups

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: mike hoy
Date:  
To: plug-discuss
Subject: shell script for automated backups
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 -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss