Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Stash backup automatic delete old backups

Martin__SCM_Support February 6, 2014

Hello

Is it possible over parameter or Properties to automatic delete old backupfiles?

i.ex. files older 14 days or keep only the last 30 backups?

Thanks

Martin

2 answers

1 accepted

0 votes
Answer accepted
Martin__SCM_Support February 12, 2014

Hi all

Sure, with a cron job everything is possible. But we like solutions which give us all options included, like to gz the output, remove old backups, if we need it. :-)

So I will extend our backupscript with a delete command like this:

find /var/..../backups/* -mtime +30 -exec rm -f {} \;

Thanks

Martin

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2014

I am quite sure that its not possible. Why not setup a cron to do it?

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2014

Hi Martin,

As Timothy has stated - this is not currently possible. Is it possible to use a custom cron job instead?

Charles

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events