Backups should be compressed

Bug #1850772 reported by Barry Price
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
InfluxDB Charm
Fix Released
Medium
Barry Price

Bug Description

Hi,

We have an influxdb unit with a fairly hefty amount of data:

$ sudo du -hs /var/lib/influxdb
39G /var/lib/influxdb
$

In the charm config, backup_dir is set to "/srv/backups/influxdb", which runs a nightly dump into e.g. /srv/backups/influxdb/2019-10-31/ and keeps the last 3 days worth by default.

Which means we need another ~120GB of free space for backups - actually closer to 160, since new backups are created before the oldest backups are removed.

Just adding a simple tar/gzip step to the backup script would save us a ton of disk space:

38G /srv/backups/influxdb/2019-10-31
8.3G /srv/backups/influxdb/2019-10-31.tgz

Related branches

Barry Price (barryprice)
Changed in influxdb-charm:
importance: Undecided → Medium
assignee: nobody → Barry Price (barryprice)
status: New → In Progress
Barry Price (barryprice)
Changed in influxdb-charm:
status: In Progress → Fix Committed
Barry Price (barryprice)
Changed in influxdb-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.