Chose a name scheme like BACKUP-$DATE.tar.gz, create a directory listing and sort it newest first. Then the first three elements in the array are to keep, the others to delete.
In reply to Re: Seeking help on a backup script
by holli
in thread Seeking help on a backup script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |