Redmine backup and restore

A Redmine backup is only useful if it restores. This page explains what to capture, how to schedule and retain it, and how to prove the restore works.

On this page

Why Redmine backup and restore needs its own plan

A Redmine backup has to capture the database and the uploaded files together, because issues, journals, wiki pages and time entries live in the database while attachments and some stored files live on disk. A dump without the matching files restores issues whose attachments are missing, and files without the matching database rows are unreachable. A restore test is the only thing that proves the backup works, so the plan should name who performs it, on which environment, and how often it runs. Redmine is free under GPL v2, so the cost of recovery is the real cost: staff time during an outage, lost project history if a backup is incomplete, and the effort to rebuild configuration that nobody wrote down.

Start by confirming which database engine your deployment uses. Redmine supports PostgreSQL, MySQL 8.0 to 8.4, SQL Server 2012 or higher, and SQLite, and the installation guide says SQLite is not suited to multi-user production use. Each engine has its own dump and restore tooling, so the procedure is engine-specific even though the goal is the same. Confirm your engine and version with your own environment before you write the procedure, since the commands in your runbook must match what is actually running.

Your plan also needs to cover the files outside the database and the uploads directory: the configuration.yml file, plugin code and any plugin storage, and the Redmine version and Ruby version in use at backup time. The Redmine upgrade guide already asks you to back up the database and uploaded files and copy configuration and third-party plugins, so the same inventory serves both upgrades and disaster recovery. Ask yourself who can restore the system if the administrator who built it is unavailable, and write that answer into the plan.

Backup methods and when each fits

This table compares the common ways to capture a Redmine backup, from native database dump tools to snapshots, backup servers and agents. Read each row for the consistency risk it carries, since a copy of the database and the attachments taken at different moments may not restore into a working Redmine. The main takeaway is that most sound designs combine a database-consistent dump with a separate copy of the files, whatever the platform offers.

MethodWhen it fitsWhat it captures and riskWhat to confirm
Native dump tools (pg_dump, mysqldump, sqlite3 .backup)Single Redmine host with a database you can dump on a schedule, and no platform-level backup serviceLogical copy of the Redmine database only. Does not include the files directory, configuration or plugin storage, so a restore is incomplete without themDump runs against a consistent point, output is encrypted and stored off the host, and a restore has been tested
Filesystem or volume snapshotsHypervisor, cloud or storage platform already takes snapshots and the database lives on the same volumeCaptures files and often the database files together. A crash-consistent snapshot may not be a clean database state unless the database is quiesced firstWhether the snapshot is application-consistent or only crash-consistent, and whether the database is flushed before capture
Dedicated backup server (for example Bareos)Several hosts or mixed workloads need one retention policy, catalog and restore consoleScheduled file and database jobs through plugins or scripts. Database coverage depends on the job design, so the dump step still needs careWhich plugins or pre-backup scripts run for PostgreSQL or MySQL, catalog storage, and the license terms that apply to your deployment
Backup appliance or hypervisor-integrated tool (for example Proxmox Backup Server)Redmine runs as a guest on Proxmox VE and the platform already manages backup jobsWhole-guest images with incremental, deduplicated and encrypted storage. Guest-level snapshots still need database quiescing to be consistentWhether the guest backup is taken with the database stopped or flushed, and who holds the encryption keys
Container platform backup (for example Velero)Redmine runs on Kubernetes and persistent volumes are the storage layerKubernetes resources and persistent volumes through snapshots or file system backup. Database content still needs a logical dump for a clean restoreWhether volume snapshots are application-consistent, and how the database and uploads volumes are captured together
Replication or standby databaseRecovery time matters more than point-in-time history, with a secondary database server availableContinuous copy of database changes. A replica is not a backup, because deletions and bad writes replicate tooWhether point-in-time recovery from archived logs is also configured for the database
Files-only copy (attachments, configuration, plugins)Always needed alongside any database methodAttachment directory, configuration files and plugin storage. Without the matching database, file names and references will not line upCopies are taken on the same schedule as the database dump and stored with the same retention

How to set up a Redmine backup job

This sequence turns a Redmine installation into a backup job that captures the database, uploaded files and configuration on a schedule, keeps copies off the host, and leaves a written procedure that another engineer can run. Each step ends with a check so the job is proven before anyone relies on it.

  1. Inventory every component and its location

    Before choosing any tool, list what the Redmine installation depends on: the production database (PostgreSQL, MySQL or SQLite), the attachment directory that holds uploaded files, the configuration file for database and mail settings, any secrets files, the files and plugins directories, and any repository clones used for SCM integration. Record the host, path and owner for each item, and confirm with the administrator which locations are used in your environment, since they vary with the deployment method. The step is done when the list is reviewed and every item has a location and a named owner.

  2. Choose database and file capture methods

    Select a logical dump tool that matches your database engine, such as pg_dump for PostgreSQL, mysqldump for MySQL, or a safe copy using the SQLite backup command for SQLite. Decide how attachments will be captured, either by archiving the attachment directory or by using snapshots if the storage platform supports them. Confirm the chosen tools exist on the host, match the database version, and can read the credentials they need. The step is done when a manual dump runs to completion from the same account the scheduled job will use.

  3. Schedule consistent dumps in a quiet window

    Write a single script that stops nothing but captures the database first, then archives the attachment directory and configuration files, so the two stay as close in time as possible. Run it during a period of low activity agreed with the users, and use a cron entry or systemd timer to trigger it. Ask the team to confirm the window and to note any scheduled Redmine maintenance tasks that write to the database, so they do not overlap. The step is done when a scheduled run completes and both the database dump and the file archive are written with the same timestamp.

  4. Copy backups to an off-host location

    Transfer each backup set to storage that is separate from the Redmine server, such as an object storage bucket, a backup server or a second site. Keep at least one copy isolated from the systems that administer the live server, so an attacker or an operator error on the host cannot remove every copy. Confirm the transfer tool authenticates with a dedicated account and that the target stores the files under the expected names. The step is done when a file listing on the remote target matches the local backup set exactly.

  5. Encrypt backups before they leave the host

    Encrypt the database dump, attachment archive and configuration archive before transfer, using a tool your team already operates, such as GnuPG or the encryption option of your backup software. Store the decryption keys separately from the backups, in a secrets manager or an offline escrow process, and document who can release them. Because backups contain personal data, credentials and project content, they need the same protection as the live data. The step is done when a test archive decrypts successfully using only the stored key and the restore documentation.

  6. Set retention and pruning rules

    Define how many daily, weekly and monthly backup sets the job keeps, and set the pruning rule so old sets are removed only after newer ones are confirmed complete. Base the retention periods on the recovery needs and any policy your organization must meet, and ask your compliance or governance owner to approve them. Make sure the backup account cannot delete sets during their retention period if your policy requires that separation. The step is done when the pruning job runs in a dry-run mode, lists the sets it would remove, and leaves the most recent complete set in place.

  7. Add monitoring and failure alerts

    Have the script write a success or failure status with the backup size, the duration and the name of each file, then send an alert to the team when a run fails or produces an unexpectedly small file. Monitor for the absence of a successful run, not only for errors, because a timer that never fires produces no error. Confirm where alerts go and who acknowledges them. The step is done when a deliberately failed run, such as one with a wrong database password, triggers the alert and the on-call contact receives it.

  8. Record the procedure and the restore test

    Write the backup procedure in a runbook that covers the inventory, the schedule, the storage locations, the decryption key holders, the retention rules and the alert contacts. Include a restore test in the runbook, and schedule it to run on a regular basis agreed by your governance owner, restoring into a separate environment and comparing record counts and attachment file counts with the source. The step is done when a restore from the latest backup succeeds in the test environment and the results are filed with the runbook.

How to prove a Redmine restore works

A restore test is a documented procedure, run on a separate host, that shows a backup can rebuild a working Redmine. A backup that has never been restored is an assumption, not a control. The test should restore the database dump into a fresh PostgreSQL, MySQL or SQLite instance, restore the files directory that holds attachments, and point a copy of configuration.yml at the restored database and file store. Then run Redmine's startup checks, log in with a known test account, open a sample of issues and attachments, and compare record counts for issues, users, projects and time entries against production at the time of the dump. Record each step, the commands used, the timestamps and any differences, so the result can be reviewed later.

The schedule for repeating this test should come from your own policy, not from a fixed rule in this page. For organizations under DORA, Article 11(6) requires ICT response and recovery plans to be tested at least yearly and after substantive changes, and Article 12(1) requires documented restoration and recovery procedures for financial entities. Other sectors may set a different cadence through their own frameworks or internal standards. Decide in advance which events count as substantive changes, such as a major Redmine upgrade, a database major version change, a new plugin that stores data, or a move to new storage, and tie a test run to each one. Confirm with your compliance lead which scope the test must cover before you write the procedure.

Upgrades depend on the same data. The Redmine upgrade guide calls for backing up the database and uploaded files, copying configuration, uploads and third-party plugins to the new installation, and then running the migration tasks. A restore test run against the target version before the production upgrade shows whether the backup, the copied configuration and the plugins all load together, so the upgrade rehearsal and the restore test can share one procedure. Keep the copy on the separate host until the upgrade is verified, and do not point it at production storage or notification settings, so that test mail and test sync jobs cannot reach real users.

Retention, encryption and isolation of backup copies

A Redmine backup is only as trustworthy as the copies that survive a bad day. The controls below work together: they decide how long copies live, how they are protected, where they sit, and who can change them. Each one maps to a backup principle in CIS Controls v8.1 and the Essential Eight, and each should be written down before the first backup job runs.

Retention periods set by business need

Retention is the length of time each backup copy is kept, and it should come from how far back you may need to recover, not from disk space alone. Keep daily, weekly and monthly generations if auditors or incident responders may ask about past states of issues and time entries. Document the period for database dumps, attachments and configuration separately, because they may change at different rates. Confirm with the business owner who decides when a copy can expire.

Encryption of backup data at rest

Redmine backups contain the database, uploaded files and configuration, which can include credentials for LDAP, SMTP and repositories. Encrypt every dump, archive and attachment copy before or as it is written to storage, and treat the encryption keys as a separate asset. Check that restore tests also prove the keys can be used. CIS Safeguard 11.3 asks that recovery data receive protection comparable to the original data.

Separation of backup and production credentials

A backup job that runs with the same database superuser or file owner as the production Redmine gives an attacker who compromises the application a path to delete its own safety net. Create a dedicated backup account with read access for dumps, and a separate storage credential that can write but not overwrite or delete existing copies. Record which account owns each step so a reviewer can trace it.

Offline or off-site isolated copies

CIS Safeguard 11.4 asks for at least one copy kept isolated from the production environment, such as offline media, a separate cloud account or an off-site location with version history. Redmine's attachments and database dumps should land there on a schedule that matches the recovery targets you set. Ask your hosting team how long an isolated copy takes to reach, and whether it survives loss of the primary cloud account or data center.

Restricted deletion by administrators

The Essential Eight at maturity level 3 expects that backup administrators cannot change or remove backups during their retention period, and that ordinary users cannot reach even their own backups. For Redmine, use object storage with object lock or write-once retention, or a logbook of deletions reviewed by someone outside the Redmine administration team. Test by attempting a deletion with the backup administrator account and confirm it is refused.

Essential Eight model

Questions buyers ask about Redmine backup and restore

What does a Redmine backup and restore setup cost, and what drives the price?

Redmine itself is free under GPL v2, so the cost comes from the work and the infrastructure around it. The main components are the setup work (database dump jobs, attachment and configuration capture, retention rules and alerts), the backup storage in your own accounts or data centers, the restore host you keep for testing, and the person who runs the restore test and keeps it current. Setup is usually one-time, while storage, compute for the restore host and ongoing checks recur. Cost rises with the size of the database and attachment store, the number of retention copies, whether backups must be encrypted and kept off-site, and how often the restore test must run. When you ask for a quote, request a written line item for each component, the restore test as a separate deliverable with its evidence, and a list of what you must supply. A fixed-scope quote is agreed in writing before work starts.

How long does it take to set up Redmine backups?

The duration depends on the size of your data, your database engine, the storage you already have and how many environments need coverage. A small instance on a single host with local storage is far simpler than a production instance with large attachment volumes, a PostgreSQL or MySQL database under load, and off-site copies that must meet a documented policy. The restore test often takes the most time to get right, because it needs a clean host, a current copy of configuration and enough time to confirm that issues, attachments and users look correct. Ask the provider to state the phases, what each one depends on from your side, and which items wait on your approvals, such as retention periods or access to a restore host. No timeline should be accepted without that breakdown.

What must our organization provide for a backup and restore project?

The work goes faster when you prepare the access and decisions up front. Typical inputs are:

  • Read access to the production database and a way to run dumps with the right credentials
  • Access to the attachments directory, the configuration.yml file, and any plugin storage
  • Storage targets for backups, including a location separate from the production host
  • A restore host that matches the production Redmine version and database engine
  • Written sign-off on retention periods, who may access backups and how long copies are kept

You should also name an owner who approves the restore test results. Without these, the setup can pause while people locate credentials or agree on policy.

Can our internal team set up Redmine backups without a partner?

Yes, a capable internal team can build backups, provided it covers the full set of data. A Redmine backup is more than a database dump: it includes the database, the files in the attachments store, configuration.yml, and the storage used by any plugins. Teams often miss the attachments or the plugin files, and a dump alone cannot restore a working instance. The part most often skipped is the restore test, which proves the backup works on a clean host. Decide who will run the job on a schedule, who reviews failures, and who performs the restore test at a defined interval. If your team lacks time or experience with database recovery, a partner can take on the design, the build and the first restore test, then hand over runbooks.

How do backups relate to a Redmine upgrade?

A backup is a required step of an upgrade, not an alternative to one. The Redmine upgrade procedure calls for backing up the database and uploaded files first, then copying configuration, uploads and third-party plugins to the new installation before running the migration tasks. A backup taken the day before an upgrade is useful only if it has been restored and checked. Plan a fresh backup immediately before each upgrade, keep the previous copy until the new version is confirmed, and run a restore test against the target version where practical. Plugins are the most common source of trouble, so record the version of every plugin in your backup set. Ask your provider how upgrade rehearsals and backup restores share the same restore host and evidence.

What does a restore test prove, and how often should we run it?

A restore test proves that a backup can rebuild a working Redmine on a separate host, with its issues, attachments, users and configuration in place. It is the only reliable evidence that a backup job has not silently failed. Run it after setup, after any substantive change such as an upgrade or a database move, and on a recurring schedule that your risk owner approves. The CIS Controls Safeguard 11.2 expects automated backups at a frequency that matches data sensitivity, and Safeguard 11.1 expects a documented recovery process reviewed annually. Record the date, the backup used, the steps taken, the time it took and the results, then keep that record with your change history.

Do backups need encryption and separate storage for compliance?

Backups hold the same sensitive content as production, so they should be protected to the same standard. The CIS Controls Safeguards 11.3 and 11.4 ask that recovery data be protected with encryption or data separation and kept in an isolated copy, such as offline, cloud or off-site storage. Regulated organizations may also need to show retention limits and restricted access, for example under DORA Article 12, which requires documented backup policies and minimum frequency by criticality. Confirm with your compliance team which of these apply, then ask your provider to show how keys are stored, who can read backups and how deletion works at the end of retention. Self-hosted backups keep control in your hands, but they still need written procedures.

How backup and restore components connect

The flow starts at the Redmine application, whose database (PostgreSQL, MySQL or SQLite), files directory of attachments, and configuration and plugin storage all feed one scheduled backup job. That job writes encrypted copies to isolated storage that the production host cannot delete during retention. A separate restore host pulls a copy, rebuilds the database and files, and runs a verification step against a known issue, project and attachment. Check that the restore host can reach the copies without holding delete rights on them.

Backup data flows from production to isolated storage, then to a restore test.

Security and operational considerations for backup data

A Redmine backup copies the database, attachments and configuration in one place, so it often carries more sensitive data than the running server. The cards below cover the controls that keep that copy safe, from who can read dumps to whether anyone notices when a backup job stops working.

Treat backups as production data

Backup copies hold issue text, comments, user names and email addresses, private attachments, and any secrets stored in configuration.yml or plugin settings. Apply the same access reviews, encryption and retention rules you apply to the live server. Check that the backup location is not more widely readable than the Redmine host itself, because a copy on a file share often has looser permissions than production.

Redmine install guide

Restrict access to database dumps

Limit read access to dump files and attachment archives to the named backup operator and the service account that writes them. Use a dedicated PostgreSQL role for the backup job with read-only rights, and choose the authentication method (password, certificate, GSSAPI or LDAP) that fits your directory. Avoid running dumps as the superuser, since a leaked dump file then grants full database control.

PostgreSQL authentication methods

Keep encryption keys apart from backups

Store the encryption passphrase or key in a separate system from the backup repository, such as a secrets manager or a hardware-backed vault that the backup administrator cannot use to alter stored backups. If the key sits next to the backup, anyone who copies the storage can read the data. Document who holds each key, how it is rotated, and how a restore is performed when the key holder is unavailable.

Separate backup administration duties

Where the organization can afford it, split the people who run backup jobs from those who can delete or overwrite backup sets. Essential Eight maturity level 3 expects that backup administrators cannot modify or delete backups during their retention period, and that ordinary users cannot read even their own backup copies. Confirm this with your own assessor, since the control applies to your environment and your evidence.

Essential Eight model

Log every restore and retrieval

Record who started a restore, which backup set was used, the target environment and the time it ran. Restores into a test environment and restores into production should both leave an entry, since a restore can expose data to people who could not normally see it. Keep these logs outside the Redmine instance being restored, so a compromised server cannot erase its own record of activity.

Monitor backup job success

Alert on failed backup jobs, missing backup files, and backups that are unusually small or empty, because a silent failure can go unnoticed until a restore is needed. Check the job exit status, the dump file size and a checksum after each run. Tie the alert to a named owner and a response time agreed in advance, and review the alert history in the same cycle as your restore test.

How DeployOpen scopes and delivers Redmine backup work

DeployOpen starts Redmine backup work with a written scope that names each component the backup must cover: the database (PostgreSQL, MySQL or SQLite), the attachment directory, the configuration.yml file, database.yml, secrets, and the plugin storage and third-party plugins that the instance depends on. The scope also records the backup frequency, the retention periods for daily, weekly and monthly copies, where copies are stored and how they are encrypted, and who may read or delete them. Those decisions are made with your team before any script is written, because a backup that omits an attachment directory or a plugin data store will not restore a working Redmine. The scope is agreed in writing, and the deliverables and the restore test that proves the backup works are listed with it.

The fixed deliverables are the backup procedure, the restore runbook and the evidence of a completed restore test. The procedure documents the commands, schedules and monitoring for each component. The runbook is written so that an engineer who did not build the system can rebuild Redmine on a clean host, follow the restore steps and confirm the result, and it records the order in which the database and files must be put back and the post-restore checks, including running the Redmine upgrade and migration steps if the target version differs. Because Redmine's own upgrade guide already requires a database and file backup before any migration, the runbook reuses that same procedure. Ongoing work such as repeating the restore test after substantive changes, reviewing retention and handling upgrades can be covered by an optional retainer, and the price and duration of each element come from the written quote.

DeployOpen prepares the evidence that compliance reviewers ask for, such as the documented recovery process, backup schedules, access rules for backup storage and restore test records, and maps these to the controls your assessors use. DeployOpen does not issue audit reports, attestations or certifications; independent auditors and certification bodies make those determinations. Before work starts, confirm with your compliance team which frameworks apply, which retention and restore-test frequency they expect, and whether the restore test must be repeated on a schedule your own staff will own after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.