Why does my backup file size keep growing?

My nightly backup file size is currently ~32MB. A month ago it was ~20MB. I haven't added any devices in the interim. And I've actually reduced the number of rules.

Yet, the size of this file keeps creeping up in size. Just in the last five days its crept up from ~30MB to ~32MB.

Why does this happen?


Could it be the watchdog your running? I remember you are running that...

1 Like

It seems to be normal (at least from my backups):

-rw-r--r-- 1 he-user he-user 7.1M Sep 19 02:00 2019-09-19~
-rw-r--r-- 1 he-user he-user 8.3M Sep 20 02:00 2019-09-20~
-rw-r--r-- 1 he-user he-user 11M Sep 22 02:00 2019-09-22~
-rw-r--r-- 1 he-user he-user 11M Sep 23 02:00 2019-09-23~
-rw-r--r-- 1 he-user he-user 11M Sep 24 02:00 2019-09-24~
-rw-r--r-- 1 he-user he-user 12M Sep 25 02:00 2019-09-25~
-rw-r--r-- 1 he-user he-user 12M Sep 26 02:00 2019-09-26~
-rw-r--r-- 1 he-user he-user 14M Sep 28 02:01 2019-09-28~
-rw-r--r-- 1 he-user he-user 16M Sep 29 02:01 2019-09-29~
-rw-r--r-- 1 he-user he-user 15M Sep 30 02:01 2019-09-30~
-rw-r--r-- 1 he-user he-user 15M Oct 1 02:01 2019-10-01~
-rw-r--r-- 1 he-user he-user 16M Oct 3 02:01 2019-10-03~
-rw-r--r-- 1 he-user he-user 17M Oct 4 02:01 2019-10-04~
-rw-r--r-- 1 he-user he-user 18M Oct 5 02:01 2019-10-05~
-rw-r--r-- 1 he-user he-user 18M Oct 6 02:01 2019-10-06~
-rw-r--r-- 1 he-user he-user 19M Oct 7 02:01 2019-10-07~
-rw-r--r-- 1 he-user he-user 19M Oct 9 02:01 2019-10-09~

1 Like

the primary element driving database size is events, the more events, the bigger the database.


How long does the history last? At what point will it begin purging those events from the backup?

1 Like

events are pruned 2AM local time every day.
The system leaves 1K max of the most recent events in the system after the prune, where 1K is measured by device:attributeName pair.


Thanks Mike!

If you backup after the prune, shouldn't the size basically plateau at some point (within some noise band, as not all events are the same size), though?

And maybe it does - I don't watch my backups closely enough to know if they are continually growing or not. So I'm not saying there is a problem, I was just thinking out loud.


yes, all of my production hubs express a 3% max variance in size over the 5 backups the system has taken.


Reminiscing. Simpler times. So young and naive.



Are you data shaming your hub? It may have put on a few extra bytes, but haven’t all of ours? Sorry, couldn’t help myself :rofl:


The extra bites is my problem too :grin:


And the Pun of the Day award goes to.... :+1: