holland-backup / holland

Holland Backup Manager
http://hollandbackup.org
Other
152 stars 49 forks source link

Mongodump Plugin not installed with Ubuntu Package #238

Closed kzap closed 6 years ago

kzap commented 6 years ago

You can install the mongodump on CentOS but on Ubuntu its not there

Ubuntu 16.04

FROM mongo:4-xenial

# apt update
RUN apt-get update

# Install cURL
RUN apt-get install -y curl

# Install Holland Backup Repo
RUN DIST="xUbuntu_16.04" \
    && curl -s http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/Release.key | apt-key add - \
    && echo "deb http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/ ./" > /etc/apt/sources.list.d/holland.list \
    && apt-get update

# Install Holland and Plugins
RUN apt-get install -y holland python3-mysqldb python3-pymongo

RUN holland lp

Output

$ docker build --rm .
...
Step 6/6 : RUN holland lp
 ---> Running in dbeb57ad3e04
Holland 1.1.8 started with pid 6
Plugin-Type  Plugin-Name     Version   Author           Summary
--------------------------------------------------------------------------------
backup       example         1.1.8dev-r0 Rackspace        Example Backup Plugin
backup       mysql-lvm       1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       mysqldump       1.1.8.post0 Rackspace        MySQLDump Backup/Restore Plugins
backup       mysqldump-lvm   1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       pgdump          1.1.8     Rackspace        Holland pg_dump backup plugin
backup       xtrabackup      1.1.8.post0 Rackspace        Holland plugin for Percona XtraBackup
command      backup          1.1.8     Rackspace        Holland Core Plugins
command      listbackups     1.1.8     Rackspace        Holland Core Plugins
command      listplugins     1.1.8     Rackspace        Holland Core Plugins
command      mk-config       1.1.8     Rackspace        Holland Core Plugins
command      purge           1.1.8     Rackspace        Holland Core Plugins

Ubuntu 18.04

FROM ubuntu:18.04

# apt update
RUN apt-get update

# Install cURL
RUN apt-get install -y curl gnupg

# Install Holland Backup Repo
RUN DIST="xUbuntu_18.04" \
    && curl -s http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/Release.key | apt-key add - \
    && echo "deb http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/ ./" > /etc/apt/sources.list.d/holland.list \
    && apt-get update

# Install Holland and Plugins
RUN apt-get install -y holland python3-mysqldb python3-pymongo

RUN holland lp

Output

$ docker build --rm .
...
Step 6/6 : RUN holland lp
 ---> Running in 2fd506f165fc
Holland 1.1.8 started with pid 6
Plugin-Type  Plugin-Name     Version   Author           Summary
--------------------------------------------------------------------------------
backup       example         1.1.8.dev0 Rackspace        Example Backup Plugin
backup       mysql-lvm       1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       mysqldump       1.1.8     Rackspace        MySQLDump Backup/Restore Plugins
backup       mysqldump-lvm   1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       pgdump          1.1.8     Rackspace        Holland pg_dump backup plugin
backup       xtrabackup      1.1.8     Rackspace        Holland plugin for Percona XtraBackup
command      backup          1.1.8     Rackspace        Holland Core Plugins
command      listbackups     1.1.8     Rackspace        Holland Core Plugins
command      listplugins     1.1.8     Rackspace        Holland Core Plugins
command      mk-config       1.1.8     Rackspace        Holland Core Plugins
command      purge           1.1.8     Rackspace        Holland Core Plugins

Debian 9.0

FROM debian:9

# apt update
RUN apt-get update

# Install cURL
RUN apt-get install -y curl gnupg

# Install Holland Backup Repo
RUN DIST="Debian_9.0" \
    && curl -s http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/Release.key | apt-key add - \
    && echo "deb http://download.opensuse.org/repositories/home:/holland-backup/${DIST}/ ./" > /etc/apt/sources.list.d/holland.list \
    && apt-get update

# Install Holland and Plugins
RUN apt-get install -y holland python3-mysqldb python3-pymongo

Output

$ docker build --rm .
...
Step 6/6 : RUN holland lp
 ---> Running in 2fd506f165fc
Holland 1.1.8 started with pid 6
Plugin-Type  Plugin-Name     Version   Author           Summary
--------------------------------------------------------------------------------
backup       example         1.1.8.dev0 Rackspace        Example Backup Plugin
backup       mysql-lvm       1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       mysqldump       1.1.8     Rackspace        MySQLDump Backup/Restore Plugins
backup       mysqldump-lvm   1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       pgdump          1.1.8     Rackspace        Holland pg_dump backup plugin
backup       xtrabackup      1.1.8     Rackspace        Holland plugin for Percona XtraBackup
command      backup          1.1.8     Rackspace        Holland Core Plugins
command      listbackups     1.1.8     Rackspace        Holland Core Plugins
command      listplugins     1.1.8     Rackspace        Holland Core Plugins
command      mk-config       1.1.8     Rackspace        Holland Core Plugins
command      purge           1.1.8     Rackspace        Holland Core Plugins

CentOS 7

FROM centos:7

# yum update
RUN yum -y install epel-release \
    && yum -y update

# Install Holland and Plugins
RUN yum -y install holland holland-common holland-mysqldump holland-mongodump

RUN holland lp

Output

$ docker build --rm .
...
Step 4/4 : RUN holland lp
 ---> Running in 6b14cf0a1a9d
Holland 1.1.8 started with pid 1
Plugin-Type  Plugin-Name     Version   Author           Summary
--------------------------------------------------------------------------------
backup       mongodump       1.1.8     Locaweb          Holland mongodump backup plugin
backup       mysqldump       1.1.8     Rackspace        MySQLDump Backup/Restore Plugins
command      backup          1.1.8     Rackspace        Holland Core Plugins
command      listbackups     1.1.8     Rackspace        Holland Core Plugins
command      listplugins     1.1.8     Rackspace        Holland Core Plugins
command      mk-config       1.1.8     Rackspace        Holland Core Plugins
command      purge           1.1.8     Rackspace        Holland Core Plugins

Can the debian/ubuntu packages be updated to include the mongodump plugin?

soulen3 commented 6 years ago

Package version holland_1.1.8-2 should now be available with the mongodump plugin

# dpkg -l holland
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-==============================================================================
ii  holland                              1.1.8-2                 all                     pluggable backup manager
# holland lp
Holland 1.1.8 started with pid 18590
Plugin-Type  Plugin-Name     Version   Author           Summary
--------------------------------------------------------------------------------
backup       mongodump       1.1.8     Locaweb          Holland mongodump backup plugin
backup       mysql-lvm       1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       mysqldump       1.1.8     Rackspace        MySQLDump Backup/Restore Plugins
backup       mysqldump-lvm   1.1.8     Rackspace        MySQL/LVM Snapshot Plugin
backup       pgdump          1.1.8     Rackspace        Holland pg_dump backup plugin
backup       xtrabackup      1.1.8     Rackspace        Holland plugin for Percona XtraBackup
command      backup          1.1.8     Rackspace        Holland Core Plugins
command      listbackups     1.1.8     Rackspace        Holland Core Plugins
command      listplugins     1.1.8     Rackspace        Holland Core Plugins
command      mk-config       1.1.8     Rackspace        Holland Core Plugins
command      purge           1.1.8     Rackspace        Holland Core Plugins
kzap commented 6 years ago

Thank you :)