-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #6714: Compress ldap backups #756
Fixes #6714: Compress ldap backups #756
Conversation
…rror_in_specfile_on_rudder_agent Fixes #7258: Syntax error in specfile on rudder-agent
Any chance this gets merged @peckpeck ? :-) |
# Select a file using a pattern # | ||
######################################################################## | ||
|
||
body file_select simple_pattern(pattern) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This body already exists in cfengine stdlib and is called "by_name"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, also rebased to latest 2.11, which fixed the previously bad ${g.gzip} variable
cc01d92
to
80c5d01
Compare
"/var/rudder/ldap/backup" | ||
file_select => by_name("@{backups_pattern}"), | ||
depth_search => recurse("0"), | ||
transformer => "${g.rudder_gzip} \"${this.promiser}\""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be ${g.gzip}
Hello @matya could you change the gzip line ? |
Every time slapd is restarted, it writes a backup, that can get big in time. This modification compresses every uncompressed ldif-backups with gzip just like the webapp-logs.
80c5d01
to
a816a6c
Compare
@peckpeck done. |
Good, merging |
Every time slapd is restarted, it writes a backup, that can get big in time
This modification compresses every uncompressed ldif-backups with gzip just
like the webapp-logs.