Project

General

Profile

Actions

Bug #6714

closed

Compress ldif backups

Added by Janos Mattyasovszky almost 6 years ago. Updated about 5 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
User visibility:
Effort required:
Priority:

Description

Please compress the ldif backups on rudder-slapd restarts, as they can take a lot of diskspace uncompressed:

-rw-r--r-- 1 root root 549M Jun  8 17:39 /var/rudder/ldap/backup/openldap-data-20150608173833.ldif

vs:
-rw-r--r-- 1 root root 56M Jun  8 17:39 /var/rudder/ldap/backup/openldap-data-20150608173833.ldif.bz2
Actions #1

Updated by François ARMAND almost 6 years ago

  • Assignee set to Matthieu CERDA
  • Target version set to 2.10.15

Thanks for reporting.
Matthieu, what do you think about that ?

Actions #2

Updated by Janos Mattyasovszky almost 6 years ago

Hi,

Before: 5.5G @ backup

rudder:/var/rudder/ldap # ll -h backup/
total 5.5G
-rw-r--r-- 1 root root  72K Mar  4 16:42 openldap-data-20150304164230.ldif
-rw------- 1 root root  27K Mar  4 16:48 openldap-data-20150304164827.ldif
-rw-r--r-- 1 root root  72K Mar  4 16:53 openldap-data-20150304165323.ldif
-rw-r--r-- 1 root root 644K Mar  4 17:06 openldap-data-20150304170559.ldif
-rw-r--r-- 1 root root 3.6M Apr 20 17:08 openldap-data-20150420170759.ldif
-rw-r--r-- 1 root root 3.6M Apr 20 17:16 openldap-data-20150420171638.ldif
-rw-r--r-- 1 root root 3.6M Apr 21 13:45 openldap-data-20150421134538.ldif
-rw-r--r-- 1 root root 3.6M Apr 21 13:49 openldap-data-20150421134918.ldif
-rw-r--r-- 1 root root 3.6M Apr 21 13:53 openldap-data-20150421135321.ldif
-rw-r--r-- 1 root root  68M May  5 15:01 openldap-data-20150505150108.ldif
-rw-r--r-- 1 root root  56M Jun  8 17:39 openldap-data-20150608173833.ldif.bz2
-rw-r--r-- 1 root root 669M Jun 26 16:55 openldap-data-20150626165401.ldif
-rw-r--r-- 1 root root 669M Jun 26 17:01 openldap-data-20150626170035.ldif
-rw-r--r-- 1 root root 669M Jun 26 19:04 openldap-data-20150626190332.ldif
-rw-r--r-- 1 root root 674M Jun 30 12:40 openldap-data-20150630123945.ldif
-rw-r--r-- 1 root root 674M Jun 30 13:02 openldap-data-20150630130228.ldif
-rw-r--r-- 1 root root 676M Jul  3 04:32 openldap-data-20150703043043.ldif
-rw-r--r-- 1 root root 691M Jul  4 00:50 openldap-data-20150704004947.ldif
-rw-r--r-- 1 root root 673M Jun 30 12:28 openldap-data-pre-upgrade-20150630122703.ldif
-rw-r--r-- 1 root root   13 Jun 30 12:28 openldap-data-pre-upgrade-20150630122703.libdb-version

Compressing:

# for i in openldap-data-2*.ldif; do pbzip2 -9 $i; done

After: 1.2G @ backup

rudder:/var/rudder/ldap/backup # ll -h
total 1.2G
-rw-r--r-- 1 root root 8.3K Mar  4 16:42 openldap-data-20150304164230.ldif.bz2
-rw------- 1 root root 3.6K Mar  4 16:48 openldap-data-20150304164827.ldif.bz2
-rw-r--r-- 1 root root 8.3K Mar  4 16:53 openldap-data-20150304165323.ldif.bz2
-rw-r--r-- 1 root root  65K Mar  4 17:06 openldap-data-20150304170559.ldif.bz2
-rw-r--r-- 1 root root 375K Apr 20 17:08 openldap-data-20150420170759.ldif.bz2
-rw-r--r-- 1 root root 375K Apr 20 17:16 openldap-data-20150420171638.ldif.bz2
-rw-r--r-- 1 root root 374K Apr 21 13:45 openldap-data-20150421134538.ldif.bz2
-rw-r--r-- 1 root root 374K Apr 21 13:49 openldap-data-20150421134918.ldif.bz2
-rw-r--r-- 1 root root 374K Apr 21 13:53 openldap-data-20150421135321.ldif.bz2
-rw-r--r-- 1 root root 7.0M May  5 15:01 openldap-data-20150505150108.ldif.bz2
-rw-r--r-- 1 root root  56M Jun  8 17:39 openldap-data-20150608173833.ldif.bz2
-rw-r--r-- 1 root root  66M Jun 26 16:55 openldap-data-20150626165401.ldif.bz2
-rw-r--r-- 1 root root  66M Jun 26 17:01 openldap-data-20150626170035.ldif.bz2
-rw-r--r-- 1 root root  66M Jun 26 19:04 openldap-data-20150626190332.ldif.bz2
-rw-r--r-- 1 root root  67M Jun 30 12:40 openldap-data-20150630123945.ldif.bz2
-rw-r--r-- 1 root root  67M Jun 30 13:02 openldap-data-20150630130228.ldif.bz2
-rw-r--r-- 1 root root  67M Jul  3 04:32 openldap-data-20150703043043.ldif.bz2
-rw-r--r-- 1 root root  68M Jul  4 00:50 openldap-data-20150704004947.ldif.bz2
-rw-r--r-- 1 root root 673M Jun 30 12:28 openldap-data-pre-upgrade-20150630122703.ldif
-rw-r--r-- 1 root root   13 Jun 30 12:28 openldap-data-pre-upgrade-20150630122703.libdb-version
Actions #3

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #4

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.16 to 2.10.17
Actions #5

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.17 to 2.10.18
Actions #6

Updated by Janos Mattyasovszky over 5 years ago

  • Found in version(s) old 2.11.14 added
  • Found in version(s) old deleted (2.11.7)
Actions #7

Updated by Janos Mattyasovszky over 5 years ago

  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/756

Added PR

Actions #8

Updated by Vincent MEMBRÉ over 5 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Matthieu CERDA to Benoît PECCATTE

Many thanks Janos ;)

Assigning Benoit for technical Review :)

Actions #9

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.18 to 2.10.19
Actions #10

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.19 to 2.10.20
Actions #11

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.20 to 277
Actions #12

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 277 to 2.11.18
Actions #13

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #14

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #15

Updated by Janos Mattyasovszky about 5 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #16

Updated by Vincent MEMBRÉ about 5 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.20, 3.0.15, 3.1.9 and 3.2.2 which were released today.

Actions

Also available in: Atom PDF