Code Monkey home page Code Monkey logo

rundeck-backup's People

Contributors

ersiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rundeck-backup's Issues

Restore function have errors (tested on Rundeck 2.6.7)

Cumulative Bug-Pack :D

After a server backup, while restoring on a new fresh installed server I´ve found these errors:

  • if path for rsa key does not exists restore doesn´t work
  • if you have plugins on /var/lib/rundeck/libext (as example MailNotificationPlugin.groovy job would be not restored because have some parameters related to the plugin.
  • if the plugin is ShellScriptNotificationPlugin.groovy also the shell patch/scripts have to be saved otherwise the job would be not reloaded.
  • on version 2.6.7 (and probably later version) the syntax had changed and you have also to specify the project name "rd-jobs load -f jobs/myjob.xml -p MyProject"

Backup Jobs Definition

I noticed that after a few years without updating, this script is a bit out of step with Rundeck's new commands.
For example, the "rd-jobs" command has been replaced by "rd jobs".
Just by making this change in the script, it was already possible to use the backup function, but in the restore function it is requesting that the project be informed through a "-p" or "--project"

Rundeck restore work-around

if you have rundeck 2.6.7 and a backup made with the script extract them inside a folder, go to that folder and use this poor code lines after first restore attempt:

!/bin/bash

for PRO in projects/* ; do
echo "PROJECT: $PRO"
PFILE=basename ${PRO}
echo "PFILE: $PFILE"
echo "JOB FILE: jobs/$PFILE.xml"
echo
echo "restoring....."
echo
rd-jobs load -f jobs/$PFILE.xml -p $PFILE

read key

done

Remember to backup plugins and scripts if you use them on your jobs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.