On 2002.06.05 23:15 Jesse Angell wrote:
> Here is my script
> #!/bin/sh
> 
> instance=${1:-palace}
> root=${2:-/home/angeleyez/palaceserver}
> cp $root/$instance/psdata/pserver.pat
> $root/$instance/psdata/backup/pserver`date +%y%m%d`.pat
> cp $root/$instance/psdata/pserver.prefs
> $root/$instance/psdata/backup/pserver`date +%y%m%d`.prefs
> 
> This script is ran daily. The one thing that I need to do is set it so
> after those are 5 days old the script deletes them. ( the backups) as it
> would become hectic after a few months.
> How do I have it delete the files that are 5 days old?

Use the find command to find stuff based on it's age?

But you could be better served using something like the logrotate program.

Karl <[EMAIL PROTECTED]>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to