Whitespace.

Change-Id: Idf3a55ce19fbfc7e0d246eba8cbab2d0501fcb4b
Ensure the ini file read is the same as checked exists.

Avoid re-calculating the string which we've alredy got to avoid the
posibility that only one of these is updated causing much confusion.

Change-Id: I09d97c1a4a53f17bdf2893ed5bbed4a51bdff2af
Detail how configuration stuff works.

This makes it easier to work with these scripts.

Change-Id: I12c8988b4978b15e0b44b07b32390970c1237c51
Fix #2125: Backup the Team Status Images.

While not massively important, it's nice of us to keep this.
This relies on puppet commit ccda9b5 for change in the backup.ini
file.

Change-Id: I2b324b1d69d6c8981d03f67c8da2f5569193cf1e
Fix #1467: Backup forum attachments.

Depends on support in puppet, 39b0d3465.

Change-Id: I760feae80a9eaf4e6d6bac3e9a310b5f7000de82
Don't backup withdrawn / mentors group

These are in the puppet ldap configuration, and will lead to errors if
sucked in from a backup.

Change-Id: Ibc362b70db38f85378c09fc7dcc814ad91d059b8
We've moved to a comodo cert chain now, back it up

Change-Id: Icd85a5d8972fd13557c38782d5f63ad59513f0cc
Fix backup names of gerrit ssh host keys

Change-Id: I4aa409f3f5d6ecad6295b420f122a4e94d59617f
Fix restoration of git-admin group

This is probably defunct, but anyway; we back it up, and on restoration
the backup in the ldap dump conflicts with the puppet-created group. So,
add it to the list of things that should be restored by modifying
existing groups.

Do the same for 'withdrawn', that's data we want to preserve. Remove
'mentors' from list of groups to delete, due to the control flow
structure it's never deleted (and if it were, that would be bad).

Change-Id: I6ae6552d9f382f57dcf8e681331a8549eed669de
Actually, don't munge the git-admin group.

It isn't installed in the configuration any more. So transforming it
into a changetype: modify in the ldif will lead to loading failures
later.

It's not linked into anything in puppet any more, so it doesn't matter
whether we back it up or not, really.

Change-Id: Iaf6d4fd98c6959e31ac6206b942903f8ab0a6eef
Add media-consent to the modify-ldif configuration

So that the existing group in ldap is modified, rather than being
overwritten, in the backup ldif. This was causing a backup-restore
fault.

Change-Id: I6d376bdb6579518574714ca537d4a609194df32b
Also back up MCF key

Change-Id: Ib6dc145776cafa3ed5863212bbd9c1d4a710b9b9
Add backup facility for the nemesis DB
sqlite dump actually produces sqlite commands

i.e., insert into , and the like.

They get printed via stdout in a script that can be used to restore the
backup, like mysql. Store these via gzip.
Fix a brain fail
Fix backup command to actually do something.