Backups

Since MaadiX release 202201, you have the option of subscribing to the backup service that is offered using the Borg software. The copies are stored on a remote server and encrypted at the source.

The remote server does not know the key needed to decrypt the copies.

The Borg Backup tool creates backups using the ‘deduplicating’ technique. This technique allows you to create copies incrementally, i.e. only new or changed files are stored in the new copies, which allows you to optimise the use of resources.

To retrieve the copies created by Borg and navigate between the folders it is necessary to first decrypt them and then transform the incremental files created by Borg into readable files that allow access to their contents.

You can check the official website of the project here: https://www.borgbackup.org/

The Control Panel offers both functionalities, but it is essential to make a copy of the of key needed to decrypt the backups and save it on one or more external devices. Without this key, in the event of your system being compromised, the backups would be unreadable.

The MaadiX team does not know this secret key, so if you lose it, there will be no way to access the contents of the backups.

Copying key

Once the backup service has been activated, you will receive an email recommending you to access the Control Panel to download a copy of the encryption key. The encryption key is a ‘secret’ in text format that you can save to a file. Until until you complete this process, you will not be able to perform any other tasks from the control panel.

The first time you access the control panel after you have activated the backup system you will see an alert like this:

Add pgp key

Access to other sections of the control panel will be prevented until you you complete the key export process.

The first step is to request the key to be exported, by clicking ‘Export Key’

Export pgp key

The export process can take between one and three minutes. Wait until the following window appears

Exporting pgp key

Once the password is exported, a field will appear in which you will have to insert control panel password in order to be able to display it.

Exporting pgp key

You can use the ‘Copy Key’ button to make sure you don’t make mistakes in the selection of the character string.

Copy pgp key

Once you have copied the string, paste it into a plain text (.txt) file and save it to one or more secure external devices (computer, hard disk, etc). Don’t forget to click on the ‘Saved key’ button so that the control panel will not force you to repeat the process again.

Saved pgp key

You will be able to make a copy of the key again at any time by visiting the page ‘System’ -> ‘Back-ups’.

Accessing copies

You can check the available backups from the ‘System’ -> ‘Backups’ tab. This page shows a list of the existing backups and allows you to ‘Mount’ or ‘Unmount’ any of them.

Copy pgp key

If a copy is mounted, you can access it via SSH/SFTP with the Supeusuarix account and you will have available all the files it contains for copying or downloading. Access to mounted copies is read-only. They cannot be modified.

Mounted copies do not take up space on the server’s disk. It is a mount point that reconstructs the state of files on a specific date.

If you reboot the server the mount point is switched off. You will then have to remount it from the control panel if you want to access the files.

The cycle that specifies how many copies are retained is shown in the right column.

When a copy is deleted by the rotation cycle, it will no longer appear in the list of available copies and cannot be remounted.

However, if it was already mounted at the time it was deleted by the rotation cycle, it will still be available and you will still be able to access the files. You can distinguish these copies because they are listed underneath the previous ones as Cache Mounted Folders as you can see in the image above.

It should be noted that the mounted folders are unmounted on every server reboot and also use system resources, so the best practice for preserving old copies is to download them to another devices.