Backup for Manual installation on Linux

Configuration file, embedded database, log files are all saved into Ctfreak config folder $HOME/.config/ctfreak.

Ctfreak offers 2 methods for backing up/restoring his data.

Cold backup

The cold backup allows you, with a momentary service shutdown, to perform a complete backup of Ctfreak.

Backup

Start by stopping the Ctfreak service.

sudo systemctl stop ctfreak

Make a backup of the Ctfreak config folder.

Start the service.

sudo systemctl start ctfreak

Restoration

Stop Ctfreak service.

Replace the Ctfreak config folder with the backed up one.

Start Ctfreak service.

Hot backup

Hot backup is a partial backup, which means that the log files of your executions and the configuration file are not taken into account (in fact, only the embedded database is backed up).

However, it has the advantage of not requiring a service shutdown.

If you cannot find a time window where no task is being executed in Ctfreak, then a hot backup can be a good compromise.

Backup

To enable hot backup, log in to the UI as an administrator, go to SettingsBackupEdit and complete the form.

Just like with tasks, hot backup can be scheduled using a cron expression.

Restoration

From a fresh installation of Ctfreak:

Stop Ctfreak service.

In the Ctfreak config folder:

  • Delete db.sqlite-shm and db.sqlite-wal files.
  • Replace db.sqlite file with the backed up one.

Start Ctfreak service.