Web Hosting Talk







View Full Version : Backup solution?


Pingu
05-14-2001, 04:29 PM
What I want is to make one full backup once a week (all users/sites/MySQL databases and server configuration stuff), and incremental stuff the rest of the week.
All files should be FTP'd to another server and files should be overwritten after two weeks...

How would I do that? Are there scripts or such that can do this?

Jason_Berresford
05-15-2001, 12:21 AM
The Cobalts have a back up feature built into them.

Go into your Cobalt Admin, click on Maintenance, On the top click on Backup.

One of the buttons you will see: Scheduled Backup

Once in there you will see Frequency, set that to Weekly

Set Data to Backup: All server configuration, e-mail and user files

Backup Files modified in the last : Backup all files

Method: FTP Server

Location: user@IPADDRESS

Password: XXXXXX

This will backup all your files every week.


As for the daily stuff, you can simply go into your /etc directory and view the cron code for cron.weekly. Then edit what you want it to do and place the code in cron.daily. You may have to change the cobalt control panel just to see what the new code would be.

This will upload the information to an FTP sites, it will do so under different names each time.

To delete the files that are two weeks old I would suggesting CuteFTP, you can run macro's through the program, and I imagin you should be able to find away to remove files older then 2 weeks. There may be a better way to do this however.

One downfall of doing it this way, is to my knowledge the MySQL files are not backed up, You would need to use a seperate script for that.