On Wed, May 28, 2014 at 09:51:10AM +0000, Zorn, Sascha wrote:

> I've recently started to use snapper to snapshot a subvolume and set the 
> TIMELINE config to:
> # cleanup hourly snapshots after some time
> TIMELINE_CLEANUP="yes"
> 
> # limits for timeline cleanup
> TIMELINE_MIN_AGE="1800"
> TIMELINE_LIMIT_HOURLY="2"  // <<<<<< should keep two hourly's
> TIMELINE_LIMIT_DAILY="20"
> TIMELINE_LIMIT_MONTHLY="12"
> TIMELINE_LIMIT_YEARLY="0"
> 
> 
> But I now see this:
> snapper -c dev list
> Type   | #  | Pre # | Date                             | User | Cleanup  | 
> Description | Userdata
> -------+----+-------+----------------------------------+------+----------+-------------+---------
> single | 0  |       |                                  | root |          | 
> current     |
> single | 21 |       | Mon 26 May 2014 12:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 45 |       | Tue 27 May 2014 12:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 69 |       | Wed 28 May 2014 12:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 71 |       | Wed 28 May 2014 02:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 72 |       | Wed 28 May 2014 03:01:03 AM CEST | root | timeline | 
> timeline    |
> single | 73 |       | Wed 28 May 2014 04:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 74 |       | Wed 28 May 2014 05:01:01 AM CEST | root | timeline | 
> timeline    |
> single | 75 |       | Wed 28 May 2014 06:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 76 |       | Wed 28 May 2014 07:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 77 |       | Wed 28 May 2014 08:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 78 |       | Wed 28 May 2014 09:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 79 |       | Wed 28 May 2014 10:01:02 AM CEST | root | timeline | 
> timeline    |
> single | 80 |       | Wed 28 May 2014 11:01:02 AM CEST | root | timeline | 
> timeline    |
> 
> 21 and 45 seems to be DAYLIES.
> 
> But 69-80 are 11 snapshots, with 70 missing. So maybe 69 is a daily as well. 
> (12 AM is really confusing me. BTW, is there a way to change the timeformat?) 
> 
> But I'm just wondering what is going on here with 71-80? This is certainly 
> more than "2" hourlys. 

Snapper creats a snapshot every hour and deletes snapshots once a
day. After that cleanup the number of snapshots will match the
numbers from the config file. But after some hours the number of
snapshots will have increased again.

> I've used rsnapshot before and configured cron to run two hourly's a day. I 
> though with TIMELINE_LIMIT_HOURLY=2 would also only keep two snapshots.

No, snapper work different that rsnapshot as explained above.

I don't like the rsnapshot algorithm since it assumes your system
is running all the time. With snapper you can have your system
run infrequently and still have a snapshot about once a month in
the long run.

> Also it would be nice if the description could be updated to "timeline - 
> daily" to indicate it is kept because of some rule.

That could mean that the description of a snapshots changes over
time. E.g. a snapshot that is keep today due to the hourly limit
could be keep tomorror due to the daily limit.

Kind Regards,
  Arvin

-- 
Arvin Schnell, <aschn...@suse.de>
Senior Software Engineer, Research & Development
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 
16746 (AG Nürnberg)
Maxfeldstraße 5
90409 Nürnberg
Germany
-- 
To unsubscribe, e-mail: yast-devel+unsubscr...@opensuse.org
To contact the owner, e-mail: yast-devel+ow...@opensuse.org

Reply via email to