shell script fo backup archiving

Reply

Join Date: Jul 2006
Posts: 4
Reputation: SmileSmita is an unknown quantity at this point 
Solved Threads: 0
SmileSmita SmileSmita is offline Offline
Newbie Poster

shell script fo backup archiving

 
0
  #1
Jun 13th, 2007
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!!!
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 539
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: shell script fo backup archiving

 
0
  #2
Jun 14th, 2007
You could consider [mis]using logadm.
See "man logadm"
It gives you all that you need.
Are you Agile.. ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Shell Scripting Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC