A few days ago I had a question about how to make backup copies of the file system to harddisk media.
This gave me some exelent good answears that I could work further on with.
There vere posted a script how to dump the database tables, and tips how to use the dd, the rsync command and the flexbackup system.
All of them worked, but I think the use of the flexbackup system modified for Harddisk storage gave the best ressult.
I used theese two howto's while working with the flexbackup (on e-smith 5.6):
http://www.e-smith.org/docs/howto/contrib/flexbackup-to-disk-howto.htmhttp://mirror.contribs.org/smeserver/contribs/dmay/mitel/howto/flexbackup-howto.htmlIt apears, as far as I can see that the resore has to be don mannually using the howto no 2, but it seems to work ok.
The flexbackup used for storing datas on a harddisk gives a very nice storage format:
root.0.200312301800.dump.gz (With year an date as a part of the file name.)
This is a dated dump of all the files and directories on the root directory, allmost 100 % of it all (exept for a few files/directories that should not be there.)
The backup of the root directory is compressed in such a way that the datas that fills ca 520 MB at my testserver is compressed down to ca 185 MB as a backup. If I had a backup harddisk that were lets say twice as big as the root harddisk I would have room for 6 ea 100 % full backups.
I now the question:
If I just had an automatic prosedure, a cronjob that just checked the backup directory for the age of the stored files, and deleted all that were older than a certain number of day, I could have a backup system that could run 100 % automatic.
The problem just know is that the backup harddisk will run full of backup datafiles after a certain number of days.
Does anyboudy of you know how to make a script that can make an automatic deletion of files in a directory when the files is older than a certain number of days ??