Installing JungleDisk’s backup service via SSH

A while ago I wanted to ensure all of my clients databases were properly backed up independently of the dedicated server which serves them. I ended up writing a PHP class to run daily that cycles through all the databases on the server and then shuttles a dump of the DB across to AWS S3 for storage. This solution has worked fine for what it was created for however I’m always on the lookout for better solutions.

Recently I came across JungleDisk after having looked at them years ago. I noticed that they now offer a server backup plan and upon looking into it I thought it was good value and integrated with AWS S3 which is a key requirement for me. I decided to give it a go as I had some free time. Most of the process went smoothly but I did run across one issue which i’ll highlight below and tell you how I solved it.

Firstly if you’re interested then I’d advise you have a look at the server backup plan details, and if you choose to go for it give their server process install guide a read also. Note I followed the linux (RPM) steps as my server runs CentOS which uses .rpm packages as opposed to .deb.

I’m not going to rehash their guide, instead I’ll describe what step I got to, the problem and how I overcame it, along with another possible solution.

Here’s what to do initially

  1. Open terminal on mac or putty on windows
  2. Connect to your server over SSH using an account that gives root access e.g. ssh [email protected] then enter the password
  3. Once your connected try installing the JD .rpm package found at the following URL; https://downloads.jungledisk.com/jungledisk/junglediskserver-3160-0.x86_64.rpm

This is where I hit an issue;

After yum ran through the dependencies I eventually got a ‘No package found’ error message and the install failed. I received it as one of the mirrors I was connecting to (fatestmirror) was causing issues. If you get this message there are two possible solutions.

  1. Copy the .rpm package to your server and then run it or;
  2. Disable the mirror.

Copying the RPM to your server and running it

This is the solution I chose to do. Firstly you want to get the .rpm package off of JD’s servers and onto your server somewhere. If memory serves correct I chose to put it in /local/bin. So ‘cd’ to where you want the .rpm to be put and run;

Now we need to run it, thing is when I ran;

I got another message about the package not being trusted. So…. if you want to get around this you’ll need to run yum install with the ‘–nogpgcheck’ flag. This bypasses the package signed check so isn’t recommended for security but if you are confident of the packages’s source and authenticity I would say it is fine. The full command that needs running is;

This then successfully run the installer and you can continue the rest of the above tutorials steps.

Disabling the mirror

JungleDisk support also sent me another possible solution after I had used the above method. I include it here in case you prefer it to the above. You will be disabling a certain mirror, hopefully allowing the installer to run. Here’s the command in full if you want to give it a go;

As I say I used the first solution to fix my issues so can’t validate that this works or if other problems don’t appear after it but it seems like it should work and is a more concise fix if so.

 

Hopefully the above helps you out if your struggling to get JD’s server process up and running.

Just remember a solid, reliable backup procedure is definitely worth a little bit of pain!

 

Richard

Leave a Reply

Your email address will not be published. Required fields are marked *