Skip to main content

RunDeck Backups

Adapted from here: https://docs.rundeck.com/docs/administration/maintenance/backup.html

We will use the rd tool to access the RunDeck API and export the project job list.

We will be backing things up to this folder:

/projects/rundeck_backups

1. Execute this, to export the project and job list:

rd jobs list -f /projects/rundeck_backups/jobs.xml -p ansible-test

If the above command returns this error, you need to set the environment variable:

image.png

If so, set this variable:

export RD_URL=http://192.168.1.200:4440

2. Stop the server:

sudo systemctl stop rundeckd.service

3. Backup the database:

sudo cp -r /var/lib/rundeck/data /projects/rundeck_backups/data/

4. Copy the logs:

sudo cp -r /var/lib/rundeck/logs /projects/rundeck_backups/logs/

5. Start the server:

sudo systemctl start rundeckd.service