Skip to content

Commit

Permalink
Add recovery documentation [#410 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Oct 25, 2011
1 parent 3a7e494 commit db7cfdc
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions docs/en/07-administration/07-chapter1.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,29 +367,56 @@ about customizing log message formats and location.

## Backup and recovery

RunDeck backup should only be done with the server down.
While running, export the Job definitions if you do not have these in source control:

(1) Export the jobs. You will have to do this for each project

rd-jobs list -f /path/to/backup/dir/project1/jobs.xml -p project1
rd-jobs list -f /path/to/backup/dir/project2/jobs.xml -p project2
...

(2) Stop the server. See: [startup and shutdown](#startup-and-shtudown)
(2) Stop the server. See: [startup and shutdown](#startup-and-shtudown). (RunDeck data file backup should only be done with the server down.)

rundeckd stop

(3) Copy the data files. (Assumes file datastore configuration). The
location of the data directory depends on the installation method:

* RPM install: `/var/lib/rundeck/data`
* Launcher install: `$RDECK_BASE/server/data`
* RPM install: `/var/lib/rundeck/data`
* Launcher install: `$RDECK_BASE/server/data`

cp -r data /path/to/backup/dir
cp -r data /path/to/backup/dir
(3) Copy the log (execution output) files.

* RPM install: `/var/lib/rundeck/logs`
* Launcher install: `$RDECK_BASE/var/logs`

cp -r logs /path/to/backup/dir

(4) Start the server

rundeckd start
rundeckd start

### Recovery

(1) Stop the server. See: [startup and shutdown](#startup-and-shtudown). (RunDeck recovery should only be done with the server down.)

rundeckd stop

(2) Restore data/logs dir from backup (Refer to above for appropriate log/data path):

cp -r /path/to/backup/logs logspath
cp -r /path/to/backup/data datapath

(3) Start the server:

rundeckd start

(4) Reload the Job definitions. You will have to do this for each project:

rd-jobs load -f /path/to/backup/dir/project1/jobs.xml -p project1
rd-jobs load -f /path/to/backup/dir/project2/jobs.xml -p project2

## Relational Database

Expand Down

0 comments on commit db7cfdc

Please sign in to comment.