Re: 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: Re: shell script for automated backups
Patrick,

Yes I would be grateful for any examples you could provide. Of course
don't want you to go out of your way or anything.

Thanks,

Mike H


Patrick Fleming, EA wrote:

> 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 -
>> To subscribe, unsubscribe, or to change you mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss