Hi,

On 01/25/2018 05:54 PM, Ryan Tandy wrote:
On Thu, Jan 25, 2018 at 05:05:27PM +0100, Floris Bos wrote:
I am not seeing any easy option to prevent this from happening.

Removing the existing backup first isn't easy enough?

If you can guarantee us that the name of the folder we would need to delete is always /var/backups/unknown-2.4.44+dfsg-5+deb9u1.ldapdb -even in future package updates- that is a possibility.
However would prefer not to make assumptions like that :-)



There is a preseed option (slapd/dump_database_destdir) to change the backup directory the database dump goes to, but that doesn't seem to affect the directory the old folder is moved to.

Oh, really? If I understand you correctly, that sounds like a second bug - not respecting destdir for that location?

It is respecting it for the destination of the database dump.
But in addition to making a database dump, it also wants to move the original folder to /var/backups, and I do not see any option to change that destination.

==
# echo "slapd slapd/dump_database_destdir string /var/backups/just-testing" | debconf-set-selections
# DEBIAN_FRONTEND=noninteractive dpkg-reconfigure slapd
  Backing up /etc/ldap/slapd.d in /var/backups/just-testing... done.
  Moving old database directory to /var/backups:

  Backup path /var/backups/unknown-2.4.44+dfsg-5+deb9u1.ldapdb exists. Giving up...
==


Yours sincerely,

Floris Bos

Reply via email to