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?
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?