On 01/20/14 14:37, Tanstaafl wrote:
> On 2014-01-20 6:51 AM, Neil Bothwick wrote:
>> On Mon, 20 Jan 2014 06:38:40 -0500, Tanstaafl wrote:
>>
>>> The pertinent part of the script is:
>>>
# delete aged backup files, keeping 60 nightlies and 45 (5 days of)
hourlies rm $(ls -1t $MySQL_BACKUP
On 01/20/14 14:37, Tanstaafl wrote:
> On 2014-01-20 6:51 AM, Neil Bothwick wrote:
>> On Mon, 20 Jan 2014 06:38:40 -0500, Tanstaafl wrote:
>>
>>> The pertinent part of the script is:
>>>
# delete aged backup files, keeping 60 nightlies and 45 (5 days of)
hourlies rm $(ls -1t $MySQL_BACKUP
On 2014-01-20 6:51 AM, Neil Bothwick wrote:
On Mon, 20 Jan 2014 06:38:40 -0500, Tanstaafl wrote:
The pertinent part of the script is:
# delete aged backup files, keeping 60 nightlies and 45 (5 days of)
hourlies rm $(ls -1t $MySQL_BACKUP_DIR_nightly/* | tail -n +61)
rm $(ls -1t $MySQL_BACKUP_
On Mon, 20 Jan 2014 06:38:40 -0500, Tanstaafl wrote:
> The pertinent part of the script is:
>
> > # delete aged backup files, keeping 60 nightlies and 45 (5 days of)
> > hourlies rm $(ls -1t $MySQL_BACKUP_DIR_nightly/* | tail -n +61)
> > rm $(ls -1t $MySQL_BACKUP_DIR_hourly/* | tail -n +46)
>
Hi all,
I've got a cron job that runs a mysqldump script, and the last part of
that script removes the oldest of the files in the backup_dir.
The pertinent part of the script is:
# delete aged backup files, keeping 60 nightlies and 45 (5 days of) hourlies
rm $(ls -1t $MySQL_BACKUP_DIR_nightl
5 matches
Mail list logo