Bash Backup Script Help

Associate
Joined
19 Jun 2006
Posts
162
Location
Swansea, Wales
Hi,

I'm trying to write a bash backup script that creates a directory based on the date and then copies certain folders to this directory. Great so far.

However, I want a way of removing the old directories. For example, if i take a backup every week then i want to remove the oldest backup every week before i begin the new backup.

Any ideas?
 
Back
Top Bottom