Front page

Re: Changing value of keep and then purging old generations

2c690b2e9ac743c3a2ed2915933c6731
BURBANK GUITARIST ALONE

From: Paul Waring <paul@xk7.net>
Date: Tue, 10 Oct 2017 10:47:47 +0100

   I've recently changed the value of keep in my config file for my Obnam 
   repository from:
   
   keep = 7d,4w,6m,2y
   
   to:
   
   keep = 90d
   
   If I want to purge all the older generations and just keep the last 90 
   days (I run obnam backup once a day), do I just run:
   
   obnam forget -r ${REPOSITORY_LOCATION}
   
   I think that is correct from reading the documentation, but I want to be 
   sure before I potentially wipe data...
   
   Thanks
   
   Paul
From: Lars Wirzenius <liw@liw.fi>
Date: Tue, 10 Oct 2017 12:51:30 +0300

   On Tue, Oct 10, 2017 at 10:47:47AM +0100, Paul Waring wrote:
   > I think that is correct from reading the documentation, but I want to be
   > sure before I potentially wipe data...
   
   That seems correct to me. You can always try with the --pretend
   option, which doesn't actually remove anything but tells you what it
   would remove.
From: Paul Waring <paul@xk7.net>
Date: Wed, 11 Oct 2017 11:07:30 +0100

   On 10/10/17 10:51, Lars Wirzenius wrote:
   > On Tue, Oct 10, 2017 at 10:47:47AM +0100, Paul Waring wrote:
   >> I think that is correct from reading the documentation, but I want to be
   >> sure before I potentially wipe data...
   > 
   > That seems correct to me. You can always try with the --pretend
   > option, which doesn't actually remove anything but tells you what it
   > would remove.
   
   Thanks, that's really useful.
   
   Does forget usually take a long time to run? It's been going for 24 
   hours now and has only managed 57/596 generations...
From: Lars Wirzenius <liw@liw.fi>
Date: Wed, 11 Oct 2017 13:09:37 +0300

   On Wed, Oct 11, 2017 at 11:07:30AM +0100, Paul Waring wrote:
   > Does forget usually take a long time to run?
   
   Yes.
From: Paul Waring <paul@xk7.net>
Date: Thu, 12 Oct 2017 08:52:45 +0100

   On 12/10/17 08:51, Mats Lidell wrote:
   >> Paul Waring writes:
   >> Does forget usually take a long time to run? It's been going for 24
   >> hours now and has only managed 57/596 generations...
   > 
   > I have used the technique to use pretend to get the list of generations to
   > delete and then delete some of those explicitly. This way you get some
   > feedback of the progress and you can do ordinary backups in between the
   > cleaning of the generations you don't want to keep.
   
   I wish I'd thought of that, I've now got a forget process running which 
   I can't cancel (locks everywhere) and I can't run backups.
   
   If it doesn't finish soon I'll probably have to blow the whole thing 
   away and start again from day 1.
From: Mats Lidell <mats.lidell@cag.se>
Date: Thu, 12 Oct 2017 09:51:13 +0200

   > Paul Waring writes:
   > Does forget usually take a long time to run? It's been going for 24
   > hours now and has only managed 57/596 generations...
   
   I have used the technique to use pretend to get the list of generations to
   delete and then delete some of those explicitly. This way you get some
   feedback of the progress and you can do ordinary backups in between the
   cleaning of the generations you don't want to keep.
   
   Yours