Running scitps automatically

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Reaction score
7
Location
CPT
Hi

I need to run a script that backs up my DB.

At the moment I am using cron tab to do a weekly backup of my server, it give each of the files a name including the date.

What I need from it now is to run a new job that basically runs a backup everyday into the same file, but only do that for a week and make a seperate file and do it again.

does anyone know if the is possible.

Just to make things simplererererer I am looking for an output of a file to be 07102009 and that file updates itself until the 13th and then a new file gets created called 14102009.

:) sorry if Im asking too much,kinda noob to linux
 
You need to run a daily differential backup and create a new file every week.
Look into diffutils manpage, also there should be howto's to make your life easier finding working bash scripts.
 
The easiest way is to use cron.daily to do the backups and in cron.weekly copy the daily file to a weekly file.
 
The easiest way is to use cron.daily to do the backups and in cron.weekly copy the daily file to a weekly file.

nice one, thats what i'm gna do. Run a daily backup on the same file, then on a specific day (eg sunday) rename that file to the same file name except add the date.

and this happens everyweek.

Thanx 4 the help
 
Top
Sign up to the MyBroadband newsletter
X