hi there,
i am looking for some sample shell scripts where i could run this shell scipt after my backups are done and are lying in the directory.
what i want to accomplish is:
to run the script after the backups are done and to delete the past tar files according to the following:
it shud delete any one file from last year
one a month in quarter
one a week
one per day for current week...

so that we dont have to manually delete those file all the time.i want to autmoate the process.

please help!!!

You could consider [mis]using logadm.
See "man logadm"
It gives you all that you need.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.