Skip to content

Instantly share code, notes, and snippets.

@uchilaka
Last active February 20, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uchilaka/83a4e7c041bbd8e9d88632be17fd75d9 to your computer and use it in GitHub Desktop.
Save uchilaka/83a4e7c041bbd8e9d88632be17fd75d9 to your computer and use it in GitHub Desktop.
Getting Started with CloudBerry Backup for Linux

Setting up CloudBerry backup on Fedora 26

v26 happens to be what I have installed as I go through this process

Installation

Steps to install the cbb and other utilities on the candidate machine you would like to backup. still need to figure out if this machine is able to serve as an on-network resource to configure others. More to come on that. Also, worth mentioning is that this tool comes with a web interface for easier management of your backup configs. I intend to explore that and reporting back.

Step 1: Download the file

Visit https://www.cloudberrylab.com/backup/server/linux.aspx to download the appropriate installer for your Linux OS version / family.

Step 2: Copy the file to your server

You can use scp (or other means) to the server

#!/bin/bash
scp ~/Downloads/{filename}.rpm {username}@{server_name}:

Step 3: Execute installer

Run installation of the rpm:

#!/bin/bash
rpm -Uvh ~/path/to/{filename}.rpm

Here's a guide on running RPMs on Fedora / RHEL: https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html

Step 4: Add to your PATH

The default path to which the application installs is /opt/local/'Cloudberry Backup'. Adding a path with spaces can be tricky - you might want to just rename the file. I'm always one for a challenge so this worked for me:

# /etc/profile.d/cloudberry.sh
#!/bin/bash                                                                                   
export CLOUDBERRY_PATH=/opt/local/'CloudBerry Backup'/bin                                     
export PATH="$CLOUDBERRY_PATH:$PATH" 

Setup

These steps get you up and running on the server you would like to backup.

Step 1: Activation

Missing steps here. Will document when I complete. For now, exploring the trial.

Step 2: Turn on the Web Console

Visit this URL for documented instructions on using the CLI to activate the built-in web console: https://www.cloudberrylab.com/resources/documentation/cli-api/cloudberry-backup-for-linux/#web-interface-(option--set-wa). Still working through this step (not sure if it binds to 0.0.0.0 out of the box - which I need for my use case) so more to come.

#!/bin/bash
# This command worked for getting a CLI success, but I might need activation to check it out (don't think so though)
# There doesn't appear to be any HOST config in the docs so I'll keep debugging
cbb option -set wa -http on -http_port 43210 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment