Project Rundeck-backup

Description

Rundeck-backup is a shell-script that helps us in rundeck backup/restore tasks.

Requirements

It needs from bash and some standard unix programs. Full list:

Configuration

It has some default values you can change easily at the beginning of the file:

RUNDECK_USER=rundeck
RUNDECK_CONFIG_DIR=/etc/rundeck
RUNDECK_SERVICE=rundeckd
TMPDIR=/tmp
DEFAULT_BACKUP_FILE=rundeck-backup-date +%Y%m%d.tar.gz

How to use it

And it pretty easy to use. For a backup, you just need to do:

[[email protected] ~]# ./rundeck-backup.sh backup rundeck.tar.gz
OK - backup finished successfully using /root/rundeck-backup.tar.gz

If there’s no filename, the backup will be saved with today’s name:

[[email protected] ~]# ./rundeck-backup.sh backup
OK - backup finished successfully using /root/rundeck-backup-20130327.tar.gz

And for the recovery, as easy as:

[[email protected] ~]# ./rundeck-backup.sh restore
Rundeck service is not running, so jobs can't be restored. Do you want to start rundeck? (y/N) y
Starting rundeckd: [ FET ]
OK - restore finished successfully using /root/rundeck-backup-20130327.tar.gz

Download

You can download the file here:
rundeck-backup

And you can find the github project here:
https://github.com/ersiko/rundeck-backup

Tomàs

Tomàs

I'll make something up