diff --git a/README.md b/README.md index cf6064c..8908383 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,15 @@ -# Bacula 11.0.2 Container +# Bacula 11.0.5 Container Deploy the bacula community edition on Docker Containers. ## Images -- [ ] Bacula Standalone fametec/bacula-standalone:11.0.2 (DEPRECATED) -- [x] Bacula Catalog fametec/bacula-catalog:11.0.2 -- [x] Bacula Director fametec/bacula-director:11.0.2 -- [x] Bacula Storage Daemon fametec/bacula-storage:11.0.2 -- [x] Bacula File Daemon fametec/bacula-client:11.0.2 -- [ ] Baculum Web Gui fametec/baculum:11.0.2 (DEPRECATED) -- [x] Baculum Web Gui fametec/baculum-web:11.0.2 (NEW) -- [x] Baculum API fametec/baculum-api:11.0.2 (NEW) +- [x] Bacula Catalog fametec/bacula-catalog:11.0.5 +- [x] Bacula Director fametec/bacula-director:11.0.5 +- [x] Bacula Storage Daemon fametec/bacula-storage:11.0.5 +- [x] Bacula File Daemon fametec/bacula-client:11.0.5 +- [x] Baculum Web Gui fametec/baculum-web:11.0.5 (NEW) +- [x] Baculum API fametec/baculum-api:11.0.5 (NEW) - [x] Postfix SMTP Relay fametec/postfix:latest - [x] SMTP2TG SMTP Relay to Telegram b3vis/docker-smtp2tg @@ -50,7 +48,7 @@ docker-compose.yaml version: '3.1' services: db: - image: fametec/bacula-catalog:11.0.2 + image: fametec/bacula-catalog:11.0.5 restart: unless-stopped environment: POSTGRES_PASSWORD: bacula @@ -61,7 +59,7 @@ docker-compose.yaml ports: - 5432 bacula-dir: - image: fametec/bacula-director:11.0.2 + image: fametec/bacula-director:11.0.5 restart: unless-stopped volumes: - ./etc/bacula-dir.conf:/opt/bacula/etc/bacula-dir.conf:ro @@ -71,7 +69,7 @@ docker-compose.yaml ports: - 9101 bacula-sd: - image: fametec/bacula-storage:11.0.2 + image: fametec/bacula-storage:11.0.5 restart: unless-stopped depends_on: - bacula-dir @@ -81,7 +79,7 @@ docker-compose.yaml ports: - 9103 bacula-fd: - image: fametec/bacula-client:11.0.2 + image: fametec/bacula-client:11.0.5 restart: unless-stopped depends_on: - bacula-sd diff --git a/docker/bacula-base/Dockerfile b/docker/bacula-base/Dockerfile index d26735d..3443d1e 100644 --- a/docker/bacula-base/Dockerfile +++ b/docker/bacula-base/Dockerfile @@ -2,7 +2,7 @@ FROM centos:7 MAINTAINER Eduardo Fraga -ENV BACULA_VERSION 11.0.2 +ENV BACULA_VERSION 11.0.5 # get your key on: https://www.bacula.org/bacula-binary-package-download/ ENV BACULA_KEY 5cee4d079821e diff --git a/docker/bacula-base/bacula-community.repo b/docker/bacula-base/bacula-community.repo index 3c97e71..ad67182 100644 --- a/docker/bacula-base/bacula-community.repo +++ b/docker/bacula-base/bacula-community.repo @@ -1,6 +1,6 @@ [Bacula-Community] name=CentOS - Bacula - Community -baseurl=https://www.bacula.org/packages/BACULA_KEY/rpms/BACULA_VERSION/el7/x86_64/ +baseurl=https://www.bacula.org/packages/BACULA_KEY/rpms/BACULA_VERSION/el7/ enabled=1 protect=0 gpgcheck=0 diff --git a/docker/bacula-catalog/Dockerfile b/docker/bacula-catalog/Dockerfile index 81465c1..738c2ca 100644 --- a/docker/bacula-catalog/Dockerfile +++ b/docker/bacula-catalog/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 AS base +FROM fametec/bacula-base:11.0.5 AS base FROM postgres:10 diff --git a/docker/bacula-dir/Dockerfile b/docker/bacula-dir/Dockerfile index 42e3a51..bb469bd 100644 --- a/docker/bacula-dir/Dockerfile +++ b/docker/bacula-dir/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 +FROM fametec/bacula-base:11.0.5 MAINTAINER eduardo@fametec.com.br diff --git a/docker/bacula-fd/Dockerfile b/docker/bacula-fd/Dockerfile index 290ca11..4fc5f0c 100644 --- a/docker/bacula-fd/Dockerfile +++ b/docker/bacula-fd/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 +FROM fametec/bacula-base:11.0.5 VOLUME ["/opt/bacula/etc"] diff --git a/docker/bacula-sd/Dockerfile b/docker/bacula-sd/Dockerfile index 492aebf..16678ea 100644 --- a/docker/bacula-sd/Dockerfile +++ b/docker/bacula-sd/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 +FROM fametec/bacula-base:11.0.5 RUN yum install -y bacula-cloud-storage --exclude=bacula-mysql diff --git a/docker/bacula-standalone/Dockerfile b/docker/bacula-standalone/Dockerfile deleted file mode 100644 index 1360f0a..0000000 --- a/docker/bacula-standalone/Dockerfile +++ /dev/null @@ -1,53 +0,0 @@ -FROM fametec/bacula-base:11.0.2 - -MAINTAINER eduardo@fametec.com.br - -VOLUME ["/opt/bacula/etc","/etc/baculum"] - -RUN yum install -y bacula-cloud-storage - -RUN for i in `ls /opt/bacula/bin`; do if test -z /usr/sbin/$i; then ln -s /opt/bacula/bin/$i /usr/sbin/$i; fi; done - -RUN rpm --import http://bacula.org/downloads/baculum/baculum.pub - -COPY confs/baculum.repo /etc/yum.repos.d/baculum.repo - -RUN yum install -y epel-release yum-utils - -RUN yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm - -RUN yum-config-manager --enable remi-php73 - -RUN yum install -y \ - sudo \ - baculum-common \ - baculum-api \ - baculum-api-httpd \ - baculum-web \ - baculum-web-httpd \ - supervisor - -COPY confs/sudoers-baculum /etc/sudoers.d/sudoers-baculum - -COPY confs/Config-api-apache /etc/baculum/Config-api-apache - -COPY confs/Config-web-apache /etc/baculum/Config-web-apache - -COPY confs/timezone.ini /etc/php.d/99-timezone.ini - -RUN chown -R apache:bacula /opt/bacula/working /opt/bacula/etc \ - && chmod -R g+rwx /opt/bacula/working /opt/bacula/etc \ - && chmod -R o+w /etc/baculum/Config-api-apache \ - && chmod -R o+w /etc/baculum/Config-web-apache - -# RUN yum -y install python3-setuptools && easy_install supervisor - -ADD confs/supervisord.conf /etc/supervisord.conf - -RUN mkdir -p /run/php-fpm - -RUN yum -y clean all && rm -rf /var/cache/yum - -EXPOSE 9101/tcp 9102/tcp 9103/tcp 9095/tcp 9096/tcp - -CMD ["/usr/bin/supervisord"] diff --git a/docker/bacula-standalone/confs/Config-api-apache/api.conf b/docker/bacula-standalone/confs/Config-api-apache/api.conf deleted file mode 100644 index 17efdf9..0000000 --- a/docker/bacula-standalone/confs/Config-api-apache/api.conf +++ /dev/null @@ -1,34 +0,0 @@ -[api] -auth_type = "basic" -debug = "0" -lang = "en" - -[db] -enabled = "1" -type = "pgsql" -name = "bacula" -login = "bacula" -password = "bacula" -ip_addr = "db" -port = "5432" -path = "" - -[bconsole] -enabled = "1" -bin_path = "/opt/bacula/bin/bconsole" -cfg_path = "/opt/bacula/etc/bconsole.conf" -use_sudo = "1" - -[jsontools] -enabled = "1" -use_sudo = "1" -bconfig_dir = "/opt/bacula/etc" -bdirjson_path = "/opt/bacula/bin/bdirjson" -dir_cfg_path = "/opt/bacula/etc/bacula-dir.conf" -bsdjson_path = "/opt/bacula/bin/bsdjson" -sd_cfg_path = "/opt/bacula/etc/bacula-sd.conf" -bfdjson_path = "/opt/bacula/bin/bfdjson" -fd_cfg_path = "/opt/bacula/etc/bacula-fd.conf" -bbconsjson_path = "/opt/bacula/bin/bbconsjson" -bcons_cfg_path = "/opt/bacula/etc/bconsole.conf" - diff --git a/docker/bacula-standalone/confs/Config-api-apache/baculum.users b/docker/bacula-standalone/confs/Config-api-apache/baculum.users deleted file mode 100644 index 1375f69..0000000 --- a/docker/bacula-standalone/confs/Config-api-apache/baculum.users +++ /dev/null @@ -1 +0,0 @@ -admin:YWG41BPzVAkN6 \ No newline at end of file diff --git a/docker/bacula-standalone/confs/Config-web-apache/baculum.users b/docker/bacula-standalone/confs/Config-web-apache/baculum.users deleted file mode 100644 index 1375f69..0000000 --- a/docker/bacula-standalone/confs/Config-web-apache/baculum.users +++ /dev/null @@ -1 +0,0 @@ -admin:YWG41BPzVAkN6 \ No newline at end of file diff --git a/docker/bacula-standalone/confs/Config-web-apache/hosts.conf b/docker/bacula-standalone/confs/Config-web-apache/hosts.conf deleted file mode 100644 index 519202a..0000000 --- a/docker/bacula-standalone/confs/Config-web-apache/hosts.conf +++ /dev/null @@ -1,13 +0,0 @@ -[Main] -auth_type = "basic" -login = "admin" -password = "admin" -client_id = "" -client_secret = "" -redirect_uri = "" -scope = "" -protocol = "http" -address = "bacula-standalone" -port = "9096" -url_prefix = "" - diff --git a/docker/bacula-standalone/confs/Config-web-apache/session.dump b/docker/bacula-standalone/confs/Config-web-apache/session.dump deleted file mode 100644 index fea6c70..0000000 --- a/docker/bacula-standalone/confs/Config-web-apache/session.dump +++ /dev/null @@ -1 +0,0 @@ -a:1:{s:11:"host_params";a:1:{i:0;a:12:{s:4:"host";s:9:"localhost";s:8:"protocol";s:4:"http";s:7:"address";s:9:"localhost";s:4:"port";s:4:"9096";s:10:"url_prefix";s:0:"";s:9:"auth_type";s:5:"basic";s:5:"login";s:5:"admin";s:8:"password";s:5:"admin";s:9:"client_id";N;s:13:"client_secret";N;s:12:"redirect_uri";N;s:5:"scope";N;}}} \ No newline at end of file diff --git a/docker/bacula-standalone/confs/Config-web-apache/settings.conf b/docker/bacula-standalone/confs/Config-web-apache/settings.conf deleted file mode 100644 index 807fe0d..0000000 --- a/docker/bacula-standalone/confs/Config-web-apache/settings.conf +++ /dev/null @@ -1,7 +0,0 @@ -[baculum] -login = "admin" -debug = "0" -lang = "en" - -[users] - diff --git a/docker/bacula-standalone/confs/baculum.repo b/docker/bacula-standalone/confs/baculum.repo deleted file mode 100644 index e9dca06..0000000 --- a/docker/bacula-standalone/confs/baculum.repo +++ /dev/null @@ -1,6 +0,0 @@ -[baculumrepo] -name=Baculum CentOS repository -baseurl=http://bacula.org/downloads/baculum/stable/centos -gpgcheck=1 -enabled=1 - diff --git a/docker/bacula-standalone/confs/sudoers-baculum b/docker/bacula-standalone/confs/sudoers-baculum deleted file mode 100644 index 7c981d1..0000000 --- a/docker/bacula-standalone/confs/sudoers-baculum +++ /dev/null @@ -1,16 +0,0 @@ -Defaults:apache !requiretty -apache ALL=NOPASSWD: /usr/sbin/bconsole -apache ALL=NOPASSWD: /usr/sbin/bdirjson -apache ALL=NOPASSWD: /usr/sbin/bsdjson -apache ALL=NOPASSWD: /usr/sbin/bfdjson -apache ALL=NOPASSWD: /usr/sbin/bbconsjson - - -apache ALL=NOPASSWD: /opt/bacula/bin/bconsole -apache ALL=NOPASSWD: /opt/bacula/bin/bdirjson -apache ALL=NOPASSWD: /opt/bacula/bin/bsdjson -apache ALL=NOPASSWD: /opt/bacula/bin/bfdjson -apache ALL=NOPASSWD: /opt/bacula/bin/bbconsjson - - - diff --git a/docker/bacula-standalone/confs/supervisord.conf b/docker/bacula-standalone/confs/supervisord.conf deleted file mode 100644 index 58052d3..0000000 --- a/docker/bacula-standalone/confs/supervisord.conf +++ /dev/null @@ -1,48 +0,0 @@ -[unix_http_server] -file=/var/run/supervisor.sock ; the path to the socket file - -[supervisord] -logfile=/var/log/supervisord.log -loglevel=info -pidfile=/var/run/supervisord.pid -nodaemon=true -logfile_backups=10 -logfile_maxbytes=50MB - - -[rpcinterface:supervisor] -supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface - - -[supervisorctl] -serverurl=unix:///var/run/supervisor.sock - - -[program:director] -command=/opt/bacula/bin/bacula-dir -f -c /opt/bacula/etc/bacula-dir.conf -priority=50 -autorestart=true - - -[program:storagedaemon] -command=/opt/bacula/bin/bacula-sd -f -c /opt/bacula/etc/bacula-sd.conf -priority=50 -autorestart=true - - -[program:filedaemon] -command=/opt/bacula/bin/bacula-fd -f -c /opt/bacula/etc/bacula-fd.conf -priority=50 -autorestart=true - - -[program:php-fpm] -command=/usr/sbin/php-fpm --nodaemonize -c /etc/php-fpm.conf -priority=50 -autorestart=true - -[program:httpd] -command=/usr/sbin/httpd -D FOREGROUND -priority=50 -autorestart=true - diff --git a/docker/bacula-standalone/confs/timezone.ini b/docker/bacula-standalone/confs/timezone.ini deleted file mode 100644 index 89636a1..0000000 --- a/docker/bacula-standalone/confs/timezone.ini +++ /dev/null @@ -1,2 +0,0 @@ -[Date] -date.timezone = Etc/UTC ; diff --git a/docker/baculum-api/Dockerfile b/docker/baculum-api/Dockerfile index 1e98037..e943cff 100644 --- a/docker/baculum-api/Dockerfile +++ b/docker/baculum-api/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 +FROM fametec/bacula-base:11.0.5 MAINTAINER eduardo@fametec.com.br diff --git a/docker/baculum-web/Dockerfile b/docker/baculum-web/Dockerfile index 025348c..7523ead 100644 --- a/docker/baculum-web/Dockerfile +++ b/docker/baculum-web/Dockerfile @@ -1,4 +1,4 @@ -FROM fametec/bacula-base:11.0.2 +FROM fametec/bacula-base:11.0.5 MAINTAINER eduardo@fametec.com.br diff --git a/docker/docker-compose-standalone-build.yml b/docker/docker-compose-standalone-build.yml deleted file mode 100644 index 690c548..0000000 --- a/docker/docker-compose-standalone-build.yml +++ /dev/null @@ -1,35 +0,0 @@ -version: '3.1' -# -services: -# - db: - build: bacula-catalog/ - image: fametec/bacula-catalog:11.0.2 - restart: unless-stopped - environment: - POSTGRES_PASSWORD: bacula - POSTGRES_USER: bacula - POSTGRES_DB: bacula - # volumes: - # - pgdata:/var/lib/postgresql/data:rw - ports: - - 5432:5432 -# - bacula-standalone: - build: bacula-standalone/ - image: fametec/bacula-standalone:11.0.2 - restart: unless-stopped - volumes: - - ./etc-standalone:/opt/bacula/etc:rw - - ./etc-standalone/baculum:/etc/baculum:rw - depends_on: - - db - ports: - - 9101:9101 - - 9102:9102 - - 9103:9103 - - 9095:9095 - - 9096:9096 -# -#volumes: -# pgdata: diff --git a/docker/docker-compose-standalone.yaml b/docker/docker-compose-standalone.yaml deleted file mode 100644 index e36b145..0000000 --- a/docker/docker-compose-standalone.yaml +++ /dev/null @@ -1,33 +0,0 @@ -version: '3.1' -# -services: -# - db: - image: fametec/bacula-catalog:11.0.2 - restart: unless-stopped - environment: - POSTGRES_PASSWORD: bacula - POSTGRES_USER: bacula - POSTGRES_DB: bacula - # volumes: - # - pgdata:/var/lib/postgresql/data:rw - ports: - - 5432:5432 -# - bacula-standalone: - image: fametec/bacula-standalone:11.0.2 - restart: unless-stopped - volumes: - - ./etc-standalone:/opt/bacula/etc:rw - - ./etc-standalone/baculum:/etc/baculum:rw - depends_on: - - db - ports: - - 9101:9101 - - 9102:9102 - - 9103:9103 - - 9095:9095 - - 9096:9096 -# -#volumes: -# pgdata: diff --git a/docker/docker-compose-with-build.yml b/docker/docker-compose-with-build.yml index 6bba46b..cf51d29 100644 --- a/docker/docker-compose-with-build.yml +++ b/docker/docker-compose-with-build.yml @@ -4,11 +4,11 @@ services: base: build: bacula-base/ - image: fametec/bacula-base:11.0.2 + image: fametec/bacula-base:11.0.5 # db: build: bacula-catalog/ - image: fametec/bacula-catalog:11.0.2 + image: fametec/bacula-catalog:11.0.5 restart: unless-stopped environment: POSTGRES_PASSWORD: bacula @@ -21,7 +21,7 @@ services: # bacula-dir: build: bacula-dir/ - image: fametec/bacula-director:11.0.2 + image: fametec/bacula-director:11.0.5 restart: unless-stopped volumes: - ./etc:/opt/bacula/etc:ro @@ -32,7 +32,7 @@ services: # bacula-sd: build: bacula-sd/ - image: fametec/bacula-storage:11.0.2 + image: fametec/bacula-storage:11.0.5 restart: unless-stopped depends_on: - bacula-dir @@ -44,7 +44,7 @@ services: # bacula-fd: build: bacula-fd/ - image: fametec/bacula-client:11.0.2 + image: fametec/bacula-client:11.0.5 restart: unless-stopped depends_on: - bacula-sd @@ -57,7 +57,7 @@ services: # baculum-api: build: baculum-api/ - image: fametec/baculum-api:11.0.2 + image: fametec/baculum-api:11.0.5 restart: unless-stopped depends_on: - db @@ -71,7 +71,7 @@ services: # baculum-web: build: baculum-web/ - image: fametec/baculum-web:11.0.2 + image: fametec/baculum-web:11.0.5 restart: unless-stopped depends_on: - baculum-api diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 196c61e..acd1904 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -3,7 +3,7 @@ version: '3.1' services: db: - image: fametec/bacula-catalog:11.0.2 + image: fametec/bacula-catalog:11.0.5 restart: unless-stopped environment: POSTGRES_PASSWORD: bacula @@ -15,7 +15,7 @@ services: - 5432:5432 # bacula-dir: - image: fametec/bacula-director:11.0.2 + image: fametec/bacula-director:11.0.5 restart: unless-stopped volumes: - ./etc:/opt/bacula/etc:ro @@ -25,7 +25,7 @@ services: - 9101:9101 # bacula-sd: - image: fametec/bacula-storage:11.0.2 + image: fametec/bacula-storage:11.0.5 restart: unless-stopped depends_on: - bacula-dir @@ -36,7 +36,7 @@ services: - 9103:9103 # bacula-fd: - image: fametec/bacula-client:11.0.2 + image: fametec/bacula-client:11.0.5 restart: unless-stopped depends_on: - bacula-sd @@ -48,7 +48,7 @@ services: - 9102:9102 # baculum-api: - image: fametec/baculum-api:11.0.2 + image: fametec/baculum-api:11.0.5 restart: unless-stopped depends_on: - db @@ -61,7 +61,7 @@ services: # baculum-web: - image: fametec/baculum-web:11.0.2 + image: fametec/baculum-web:11.0.5 restart: unless-stopped depends_on: - baculum-api diff --git a/docker/etc-standalone/.rpm.sed b/docker/etc-standalone/.rpm.sed deleted file mode 100644 index 24d27f5..0000000 --- a/docker/etc-standalone/.rpm.sed +++ /dev/null @@ -1,8 +0,0 @@ -# This file is used to ensure that all passwords will -# match between configuration files -s@XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX@XDnaVZYU9F4QhqUGMPxiOXsJaji23mNG3FaAM9Z2q1c/@g -s@XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX@eso80TrxzhXkRgaQVI6ZYrSzAZ4E9KFNp0Y+T1HHVWBi@g -s@XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX@TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n@g -s@XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX@r0V/Hx0TUwQ4TlnX1lyUHf8J8v9XvRBqnHTRW9+CB614@g -s@XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX@nm6na6cCh3NymDV6JteWL0Fir71A5uhrdRjmnRKjnHn5@g -s@XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX@5p+emSGBrRv7sdsOJjlXxOjIDIzvivTLzY8ywWCjz02x@g diff --git a/docker/etc-standalone/bacula-dir-cloud-aws.conf b/docker/etc-standalone/bacula-dir-cloud-aws.conf deleted file mode 100644 index 5cdae5d..0000000 --- a/docker/etc-standalone/bacula-dir-cloud-aws.conf +++ /dev/null @@ -1,72 +0,0 @@ -# bacula-dir-cloud.conf -# -# JobDefs -# Job -# Restore -# Pool -# Autochanger -# - - -# Template to store in cloud -JobDefs { - Name = "DefaultJobToCloudAWS" - Type = Backup - Level = Incremental - Client = bacula-fd - FileSet = "Full Set" - Schedule = "WeeklyCycle" - Storage = "CloudS3AWS" - Messages = Standard - Pool = CloudAWS - SpoolAttributes = yes - Priority = 10 - Write Bootstrap = "/opt/bacula/working/%c.bsr" -} - -# Jobs -Job { - Name = "BackupClient1ToCloudAWS" - JobDefs = "DefaultJobToCloudAWS" -} - - - -# Restore -Job { - Name = "RestoreFromCloudAWS" - Type = Restore - Client=bacula-fd - Storage = CloudS3AWS - FileSet="Full Set" - Pool = CloudAWS - Messages = Standard - Where = /tmp/bacula-restores -} - - - -# Cloud Pool definition -Pool { - Name = CloudAWS - Pool Type = Backup - Recycle = no # Bacula can automatically recycle Volumes - AutoPrune = yes # Prune expired volumes - Volume Retention = 365 days # one year - Maximum Volume Jobs = 1 # - # Maximum Volume Bytes = 100M # Limit Volume size to something reasonable - Label Format = "Vol-JobId-${JobId}" # Auto label -} - - -# Autochanger definition -Autochanger { - Name = "CloudS3AWS" -# Do not use "localhost" here - Address = bacula-sd # N.B. Use a fully qualified name here - SDPort = 9103 - Password = "TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n" - Device = "CloudAutoChangerS3" - Media Type = "CloudType" - Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time -} diff --git a/docker/etc-standalone/bacula-dir-cloud.conf b/docker/etc-standalone/bacula-dir-cloud.conf deleted file mode 100644 index aa67665..0000000 --- a/docker/etc-standalone/bacula-dir-cloud.conf +++ /dev/null @@ -1,96 +0,0 @@ -# bacula-dir-cloud.conf -# -# JobDefs -# Job -# Restore -# Pool -# Autochanger -# - - -# Template to store in cloud -JobDefs { - Name = "DefaultJobToCloud" - Type = Backup - Level = Incremental - Client = bacula-fd - FileSet = "Full Set" - Schedule = "WeeklyCycle" - Storage = "CloudS3" - Messages = Standard - Pool = Cloud - SpoolAttributes = yes - Priority = 10 - Write Bootstrap = "/opt/bacula/working/%c.bsr" -} - -# Jobs -Job { - Name = "BackupClient1ToCloud" - JobDefs = "DefaultJobToCloud" -} - - - -# Restore -Job { - Name = "RestoreFromCloud" - Type = Restore - Client=bacula-fd - Storage = CloudS3 - FileSet="Full Set" - Pool = Cloud - Messages = Standard - Where = /tmp/bacula-restores -} - - - -# Cloud Pool definition -Pool { - Name = Cloud - Pool Type = Backup - Recycle = no # Bacula can automatically recycle Volumes - AutoPrune = yes # Prune expired volumes - Volume Retention = 365 days # one year - Maximum Volume Jobs = 1 # - # Maximum Volume Bytes = 100M # Limit Volume size to something reasonable - Label Format = "Vol-JobId-${JobId}" # Auto label -} - - -# Autochanger definition -Autochanger { - Name = "CloudS3" -# Do not use "localhost" here - Address = bacula-sd # N.B. Use a fully qualified name here - SDPort = 9103 - Password = "TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n" - Device = "CloudAutoChanger1" - Media Type = "CloudType" - Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time -} - -# -#Autochanger { -# Name = "CloudS3-2" -## Do not use "localhost" here -# Address = bacula-sd # N.B. Use a fully qualified name here -# SDPort = 9103 -# Password = "TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n" -# Device = "CloudAutoChanger2" -# Media Type = "CloudType" -# Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time -#} -# -#Autochanger { -# Name = "CloudS3-3" -## Do not use "localhost" here -# Address = bacula-sd # N.B. Use a fully qualified name here -# SDPort = 9103 -# Password = "TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n" -# Device = "CloudAutoChanger3" -# Media Type = "CloudType" -# Maximum Concurrent Jobs = 10 # run up to 10 jobs a the same time -#} -# diff --git a/docker/etc-standalone/bacula-dir.conf b/docker/etc-standalone/bacula-dir.conf deleted file mode 100644 index c5f653e..0000000 --- a/docker/etc-standalone/bacula-dir.conf +++ /dev/null @@ -1,354 +0,0 @@ -# -# Default Bacula Director Configuration file -# -# The only thing that MUST be changed is to add one or more -# file or directory names in the Include directive of the -# FileSet resource. -# -# For Bacula release 9.4.4 (28 May 2019) -- redhat Enterprise release -# -# You might also want to change the default email address -# from root to your address. See the "mail" and "operator" -# directives in the Messages resource. -# -# Copyright (C) 2000-2017 Kern Sibbald -# License: BSD 2-Clause; see file LICENSE-FOSS -# - -Director { # define myself - Name = bacula-dir - DIRport = 9101 # where we listen for UA connections - QueryFile = "/opt/bacula/scripts/query.sql" - WorkingDirectory = "/opt/bacula/working" - PidDirectory = "/opt/bacula/working" - Maximum Concurrent Jobs = 20 - Password = "XDnaVZYU9F4QhqUGMPxiOXsJaji23mNG3FaAM9Z2q1c/" # Console password - Messages = Daemon -} - -JobDefs { - Name = "DefaultJob" - Type = Backup - Level = Incremental - Client = bacula-fd - FileSet = "Full Set" - Schedule = "WeeklyCycle" - Storage = File1 - Messages = Standard - Pool = File - SpoolAttributes = yes - Priority = 10 - Write Bootstrap = "/opt/bacula/working/%c.bsr" -} - - -# -# Define the main nightly save backup job -# By default, this job will back up to disk in /tmp -Job { - Name = "BackupClient1" - JobDefs = "DefaultJob" -} - -#Job { -# Name = "BackupClient2" -# Client = bacula2-fd -# JobDefs = "DefaultJob" -#} - -#Job { -# Name = "BackupClient1-to-Tape" -# JobDefs = "DefaultJob" -# Storage = LTO-4 -# Spool Data = yes # Avoid shoe-shine -# Pool = Default -#} - -#} - -# Backup the catalog database (after the nightly save) -Job { - Name = "BackupCatalog" - JobDefs = "DefaultJob" - Level = Full - FileSet="Catalog" - Schedule = "WeeklyCycleAfterBackup" - # This creates an ASCII copy of the catalog - # Arguments to make_catalog_backup.pl are: - # make_catalog_backup.pl - RunBeforeJob = "/opt/bacula/scripts/make_catalog_backup.pl MyCatalog" - # This deletes the copy of the catalog - RunAfterJob = "/opt/bacula/scripts/delete_catalog_backup" - Write Bootstrap = "/opt/bacula/working/%n.bsr" - Priority = 11 # run after main backup -} - -# -# Standard Restore template, to be changed by Console program -# Only one such job is needed for all Jobs/Clients/Storage ... -# -Job { - Name = "RestoreFiles" - Type = Restore - Client=bacula-fd - Storage = File1 -# The FileSet and Pool directives are not used by Restore Jobs -# but must not be removed - FileSet="Full Set" - Pool = File - Messages = Standard - Where = /tmp/bacula-restores -} - - -# List of files to be backed up -FileSet { - Name = "Full Set" - Include { - Options { - signature = MD5 - } -# -# Put your list of files here, preceded by 'File =', one per line -# or include an external list with: -# -# File = \" -s \"Bacula: %t %e of %c %l\" %r" -# operatorcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r" -# mail = root@localhost = all, !skipped - operator = root@localhost = mount - console = all, !skipped, !saved -# -# WARNING! the following will create a file that you must cycle from -# time to time as it will grow indefinitely. However, it will -# also keep all your messages if they scroll off the console. -# -# append = "/opt/bacula/log/bacula.log" = all, !skipped - stdout = all, !skipped - catalog = all - # Telegram - # mailcommand = "/opt/bacula/bin/bsmtp -h smtp2tg -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" - # mail = eduardo@smtp2tg = all, !skipped -} - - -# -# Message delivery for daemon messages (no job). -Messages { - Name = Daemon -# mailcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r" -# mail = root@localhost = all, !skipped - console = all, !skipped, !saved - stdout = all, !skipped -# append = "/opt/bacula/log/bacula.log" = all, !skipped - # Telegram - # mailcommand = "/opt/bacula/bin/bsmtp -h smtp2tg -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r" - # mail = eduardo@smtp2tg = all, !skipped -} - -# Default pool definition -Pool { - Name = Default - Pool Type = Backup - Recycle = yes # Bacula can automatically recycle Volumes - AutoPrune = yes # Prune expired volumes - Volume Retention = 365 days # one year - Maximum Volume Bytes = 50G # Limit Volume size to something reasonable - Maximum Volumes = 100 # Limit number of Volumes in Pool -} - -# File Pool definition -Pool { - Name = File - Pool Type = Backup - Recycle = yes # Bacula can automatically recycle Volumes - AutoPrune = yes # Prune expired volumes - Volume Retention = 365 days # one year - Maximum Volume Bytes = 50G # Limit Volume size to something reasonable - Maximum Volumes = 100 # Limit number of Volumes in Pool - Label Format = "Vol-" # Auto label -} - - -# Scratch pool definition -Pool { - Name = Scratch - Pool Type = Backup -} - -# -# Restricted console used by tray-monitor to get the status of the director -# -Console { - Name = bacula-mon - Password = "r0V/Hx0TUwQ4TlnX1lyUHf8J8v9XvRBqnHTRW9+CB614" - CommandACL = status, .status -} - -# Include bacula-dir-cloud.conf for Wasabi cloud provider -# @/opt/bacula/etc/bacula-dir-cloud.conf - - -# Include bacula-dir-cloud-aws.conf for AWS S3 cloud provider -# @/opt/bacula/etc/bacula-dir-cloud-aws.conf - - - -# Include subfiles associated with configuration of clients. -# # They define the bulk of the Clients, Jobs, and FileSets. -# # Remember to "reload" the Director after adding a client file. -# @|"sh -c 'for f in /opt/bacula/etc/clientdefs/*.conf ; do echo @${f} ; done'" - diff --git a/docker/etc-standalone/bacula-fd.conf b/docker/etc-standalone/bacula-fd.conf deleted file mode 100644 index 44cd96b..0000000 --- a/docker/etc-standalone/bacula-fd.conf +++ /dev/null @@ -1,48 +0,0 @@ -# -# Default Bacula File Daemon Configuration file -# -# For Bacula release 9.4.4 (28 May 2019) -- redhat Enterprise release -# -# There is not much to change here except perhaps the -# File daemon Name to -# -# -# Copyright (C) 2000-2015 Kern Sibbald -# License: BSD 2-Clause; see file LICENSE-FOSS -# - -# -# List Directors who are permitted to contact this File daemon -# -Director { - Name = bacula-dir - Password = "eso80TrxzhXkRgaQVI6ZYrSzAZ4E9KFNp0Y+T1HHVWBi" -} - -# -# Restricted Director, used by tray-monitor to get the -# status of the file daemon -# -Director { - Name = bacula-mon - Password = "nm6na6cCh3NymDV6JteWL0Fir71A5uhrdRjmnRKjnHn5" - Monitor = yes -} - -# -# "Global" File daemon configuration specifications -# -FileDaemon { # this is me - Name = bacula-fd - FDport = 9102 # where we listen for the director - WorkingDirectory = /opt/bacula/working - Pid Directory = /opt/bacula/working - Maximum Concurrent Jobs = 20 - Plugin Directory = /opt/bacula/plugins -} - -# Send all messages except skipped files back to Director -Messages { - Name = Standard - director = bacula-dir = all, !skipped, !restored -} diff --git a/docker/etc-standalone/bacula-sd-s3.conf b/docker/etc-standalone/bacula-sd-s3.conf deleted file mode 100644 index b085f37..0000000 --- a/docker/etc-standalone/bacula-sd-s3.conf +++ /dev/null @@ -1,50 +0,0 @@ -# Define a virtual autochanger for AWS S3 -# -# Change AccessKey and SecretKey on Cloud resource -# - -# Autochangers - -Autochanger { - Name = "CloudAutoChangerS3" - Device = CloudStorageS3 - Changer Command = "" - Changer Device = /dev/null -} - -# Devices - -Device { - Name = "CloudStorageS3" - Device Type = "Cloud" - Cloud = "S3-cloud-us-west-2" - Maximum Part Size = 2M - Maximum File Size = 2M - Media Type = "CloudType" - Archive Device = "/tmp" - LabelMedia = yes - Random Access = yes - AutomaticMount = yes - RemovableMedia = no - AlwaysOpen = no -} - -# Cloud providers -# Hostname see https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region - -Cloud { - Name = "S3-cloud-us-west-2" - Driver = "S3" - HostName = "s3.us-west-2.amazonaws.com" - BucketName = "fametec-backup" - AccessKey = "ABC" - SecretKey = "DEF" - Protocol = HTTPS - UriStyle = "VirtualHost" - Truncate Cache = "AfterUpload" - Upload = "EachPart" - Region = "us-west-2" - MaximumUploadBandwidth = 10MB/s -} -# -# diff --git a/docker/etc-standalone/bacula-sd-wasabi.conf b/docker/etc-standalone/bacula-sd-wasabi.conf deleted file mode 100644 index c7439c0..0000000 --- a/docker/etc-standalone/bacula-sd-wasabi.conf +++ /dev/null @@ -1,129 +0,0 @@ -# Define a virtual autochanger for Wasabi Cloud -# -# CloudStorage1 => us-east-2 -# CloudStorage2 => eu-central-1 -# CloudStorage3 => us-west-1 -# -# Change AccessKey and SecretKey on Cloud resource -# - -# Autochangers - -Autochanger { - Name = "CloudAutoChanger1" - Device = CloudStorage1 - Changer Command = "" - Changer Device = /dev/null -} -# -#Autochanger { -# Name = "CloudAutoChanger2" -# Device = CloudStorage2 -# Changer Command = "" -# Changer Device = /dev/null -#} -# -#Autochanger { -# Name = "CloudAutoChanger3" -# Device = CloudStorage3 -# Changer Command = "" -# Changer Device = /dev/null -#} -# - - -# Devices - -Device { - Name = "CloudStorage1" - Device Type = "Cloud" - Cloud = "WasabiS3-cloud-us-east-2" - Maximum Part Size = 2M - Maximum File Size = 2M - Media Type = "CloudType" - Archive Device = "/tmp" - LabelMedia = yes - Random Access = yes - AutomaticMount = yes - RemovableMedia = no - AlwaysOpen = no -} - -# -#Device { -# Name = "CloudStorage2" -# Device Type = "Cloud" -# Cloud = "WasabiS3-cloud-eu-central-1" -# Maximum Part Size = 2M -# Maximum File Size = 2M -# Media Type = "CloudType" -# Archive Device = "/tmp" -# LabelMedia = yes -# Random Access = yes -# AutomaticMount = yes -# RemovableMedia = no -# AlwaysOpen = no -#} -# -# -#Device { -# Name = "CloudStorage3" -# Device Type = "Cloud" -# Cloud = "WasabiS3-cloud-us-west-1" -# Maximum Part Size = 2M -# Maximum File Size = 2M -# Media Type = "CloudType" -# Archive Device = "/tmp" -# LabelMedia = yes -# Random Access = yes -# AutomaticMount = yes -# RemovableMedia = no -# AlwaysOpen = no -#} -# - -# Cloud providers - -Cloud { - Name = "WasabiS3-cloud-us-east-2" - Driver = "S3" - HostName = "s3.us-east-2.wasabisys.com" - BucketName = "fametec-backup" - AccessKey = "ABC" - SecretKey = "DEF" - Protocol = HTTPS - UriStyle = "VirtualHost" - Truncate Cache = "AfterUpload" - Upload = "EachPart" - MaximumUploadBandwidth = 10MB/s -} -# -#Cloud { -# Name = "WasabiS3-cloud-eu-central-1" -# Driver = "S3" -# HostName = "s3.eu-central-1.wasabisys.com" -# BucketName = "fametec-backup2" -# AccessKey = "ABC" -# SecretKey = "DEF" -# Protocol = HTTPS -# UriStyle = "VirtualHost" -# Truncate Cache = "AfterUpload" -# Upload = "EachPart" -# MaximumUploadBandwidth = 10MB/s -#} - - -#Cloud { -# Name = "WasabiS3-cloud-us-west-1" -# Driver = "S3" -# HostName = "s3.us-west-1.wasabisys.com" -# BucketName = "fametec-backup3" -# AccessKey = "ABC" -# SecretKey = "DEF" -# Protocol = HTTPS -# UriStyle = "VirtualHost" -# Truncate Cache = "AfterUpload" -# Upload = "EachPart" -# MaximumUploadBandwidth = 10MB/s -#} -# diff --git a/docker/etc-standalone/bacula-sd.conf b/docker/etc-standalone/bacula-sd.conf deleted file mode 100644 index 1779c60..0000000 --- a/docker/etc-standalone/bacula-sd.conf +++ /dev/null @@ -1,344 +0,0 @@ -# -# Default Bacula Storage Daemon Configuration file -# -# For Bacula release 9.4.4 (28 May 2019) -- redhat Enterprise release -# -# You may need to change the name of your tape drive -# on the "Archive Device" directive in the Device -# resource. If you change the Name and/or the -# "Media Type" in the Device resource, please ensure -# that dird.conf has corresponding changes. -# -# -# Copyright (C) 2000-2017 Kern Sibbald -# License: BSD 2-Clause; see file LICENSE-FOSS -# - -Storage { # definition of myself - Name = bacula-sd - SDPort = 9103 # Director's port - WorkingDirectory = "/opt/bacula/working" - Pid Directory = "/opt/bacula/working" - Plugin Directory = "/opt/bacula/plugins" - Maximum Concurrent Jobs = 20 -} - -# -# List Directors who are permitted to contact Storage daemon -# -Director { - Name = bacula-dir - Password = "TS8EQJ99iLFSK39oJy33YqkZ98v4ZapjRcA+j1N6ED1n" -} - -# -# Restricted Director, used by tray-monitor to get the -# status of the storage daemon -# -Director { - Name = bacula-mon - Password = "5p+emSGBrRv7sdsOJjlXxOjIDIzvivTLzY8ywWCjz02x" - Monitor = yes -} - -# -# Note, for a list of additional Device templates please -# see the directory /examples/devices -# Or follow the following link: -# http://www.bacula.org/git/cgit.cgi/bacula/tree/bacula/examples/devices?h=Branch-7.4 -# - -# -# Devices supported by this Storage daemon -# To connect, the Director's bacula-dir.conf must have the -# same Name and MediaType. -# - -# -# Define a Virtual autochanger -# -Autochanger { - Name = FileChgr1 - Device = FileChgr1-Dev1, FileChgr1-Dev2 - Changer Command = "" - Changer Device = /dev/null -} - -Device { - Name = FileChgr1-Dev1 - Media Type = File1 - Archive Device = /tmp - LabelMedia = yes; # lets Bacula label unlabeled media - Random Access = Yes; - AutomaticMount = yes; # when device opened, read it - RemovableMedia = no; - AlwaysOpen = no; - Maximum Concurrent Jobs = 5 -} - -Device { - Name = FileChgr1-Dev2 - Media Type = File1 - Archive Device = /tmp - LabelMedia = yes; # lets Bacula label unlabeled media - Random Access = Yes; - AutomaticMount = yes; # when device opened, read it - RemovableMedia = no; - AlwaysOpen = no; - Maximum Concurrent Jobs = 5 -} - -# -# Define a second Virtual autochanger -# -Autochanger { - Name = FileChgr2 - Device = FileChgr2-Dev1, FileChgr2-Dev2 - Changer Command = "" - Changer Device = /dev/null -} - -Device { - Name = FileChgr2-Dev1 - Media Type = File2 - Archive Device = /tmp - LabelMedia = yes; # lets Bacula label unlabeled media - Random Access = Yes; - AutomaticMount = yes; # when device opened, read it - RemovableMedia = no; - AlwaysOpen = no; - Maximum Concurrent Jobs = 5 -} - -Device { - Name = FileChgr2-Dev2 - Media Type = File2 - Archive Device = /tmp - LabelMedia = yes; # lets Bacula label unlabeled media - Random Access = Yes; - AutomaticMount = yes; # when device opened, read it - RemovableMedia = no; - AlwaysOpen = no; - Maximum Concurrent Jobs = 5 -} - - - -# -# An autochanger device with two drives -# -#Autochanger { -# Name = Autochanger -# Device = Drive-1 -# Device = Drive-2 -# Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" -# Changer Device = /dev/sg0 -#} - -#Device { -# Name = Drive-1 # -# Drive Index = 0 -# Media Type = DLT-8000 -# Archive Device = /dev/nst0 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# AutoChanger = yes -# # -# # New alert command in Bacula 9.0.0 -# # Note: you must have the sg3_utils (rpms) or the -# # sg3-utils (deb) installed on your system. -# # and you must set the correct control device that -# # corresponds to the Archive Device -# Control Device = /dev/sg?? # must be SCSI ctl for /dev/nst0 -# Alert Command = "/opt/bacula/scripts/tapealert %l" -# -# # -# # Enable the Alert command only if you have the mtx package loaded -# # Note, apparently on some systems, tapeinfo resets the SCSI controller -# # thus if you turn this on, make sure it does not reset your SCSI -# # controller. I have never had any problems, and smartctl does -# # not seem to cause such problems. -# # -# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -# If you have smartctl, enable this, it has more info than tapeinfo -# Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -#Device { -# Name = Drive-2 # -# Drive Index = 1 -# Media Type = DLT-8000 -# Archive Device = /dev/nst1 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# AutoChanger = yes -# # Enable the Alert command only if you have the mtx package loaded -# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -# If you have smartctl, enable this, it has more info than tapeinfo -# Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# A Linux or Solaris LTO-2 tape drive -# -#Device { -# Name = LTO-2 -# Media Type = LTO-2 -# Archive Device = /dev/nst0 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# Maximum File Size = 3GB -## Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" -## Changer Device = /dev/sg0 -## AutoChanger = yes -# # Enable the Alert command only if you have the mtx package loaded -## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -## If you have smartctl, enable this, it has more info than tapeinfo -## Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# A Linux or Solaris LTO-3 tape drive -# -#Device { -# Name = LTO-3 -# Media Type = LTO-3 -# Archive Device = /dev/nst0 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# Maximum File Size = 4GB -# Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" -# Changer Device = /dev/sg0 -# AutoChanger = yes -# # -# # New alert command in Bacula 9.0.0 -# # Note: you must have the sg3_utils (rpms) or the -# # sg3-utils (deb) installed on your system. -# # and you must set the correct control device that -# # corresponds to the Archive Device -# Control Device = /dev/sg?? # must be SCSI ctl for /dev/nst0 -# Alert Command = "/opt/bacula/scripts/tapealert %l" -# -# # Enable the Alert command only if you have the mtx package loaded -## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -## If you have smartctl, enable this, it has more info than tapeinfo -## Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# A Linux or Solaris LTO-4 tape drive -# -#Device { -# Name = LTO-4 -# Media Type = LTO-4 -# Archive Device = /dev/nst0 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# Maximum File Size = 5GB -# Changer Command = "/opt/bacula/scripts/mtx-changer %c %o %S %a %d" -# Changer Device = /dev/sg0 -# AutoChanger = yes -# # -# # New alert command in Bacula 9.0.0 -# # Note: you must have the sg3_utils (rpms) or the -# # sg3-utils (deb) installed on your system. -# # and you must set the correct control device that -# # corresponds to the Archive Device -# Control Device = /dev/sg?? # must be SCSI ctl for /dev/nst0 -# Alert Command = "/opt/bacula/scripts/tapealert %l" -# -# # Enable the Alert command only if you have the mtx package loaded -## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -## If you have smartctl, enable this, it has more info than tapeinfo -## Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# An HP-UX tape drive -# -#Device { -# Name = Drive-1 # -# Drive Index = 0 -# Media Type = DLT-8000 -# Archive Device = /dev/rmt/1mnb -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes; -# RemovableMedia = yes; -# RandomAccess = no; -# AutoChanger = no -# Two EOF = yes -# Hardware End of Medium = no -# Fast Forward Space File = no -# # -# # New alert command in Bacula 9.0.0 -# # Note: you must have the sg3_utils (rpms) or the -# # sg3-utils (deb) installed on your system. -# # and you must set the correct control device that -# # corresponds to the Archive Device -# Control Device = /dev/sg?? # must be SCSI ctl for /dev/rmt/1mnb -# Alert Command = "/opt/bacula/scripts/tapealert %l" -# -# # -# # Enable the Alert command only if you have the mtx package loaded -# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" -# If you have smartctl, enable this, it has more info than tapeinfo -# Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# A FreeBSD tape drive -# -#Device { -# Name = DDS-4 -# Description = "DDS-4 for FreeBSD" -# Media Type = DDS-4 -# Archive Device = /dev/nsa1 -# AutomaticMount = yes; # when device opened, read it -# AlwaysOpen = yes -# Offline On Unmount = no -# Hardware End of Medium = no -# BSF at EOM = yes -# Backward Space Record = no -# Fast Forward Space File = no -# TWO EOF = yes -# # -# # New alert command in Bacula 9.0.0 -# # Note: you must have the sg3_utils (rpms) or the -# # sg3-utils (deb) installed on your system. -# # and you must set the correct control device that -# # corresponds to the Archive Device -# Control Device = /dev/sg?? # must be SCSI ctl for /dev/nsa1 -# Alert Command = "/opt/bacula/scripts/tapealert %l" -# -# If you have smartctl, enable this, it has more info than tapeinfo -# Alert Command = "sh -c 'smartctl -H -l error %c'" -#} - -# -# Send all messages to the Director, -# mount messages also are sent to the email address -# -Messages { - Name = Standard - director = bacula-dir = all -} - - -# # Include bacula-sd-wasabi.conf for Wasabi Cloud provider -# @/opt/bacula/etc/bacula-sd-wasabi.conf -# - -# # Include bacula-sd-s3.conf for AWS S3 Cloud provider -# @/opt/bacula/etc/bacula-sd-s3.conf -# - diff --git a/docker/etc-standalone/baculum/Config-api-apache/api.conf b/docker/etc-standalone/baculum/Config-api-apache/api.conf deleted file mode 100644 index 17efdf9..0000000 --- a/docker/etc-standalone/baculum/Config-api-apache/api.conf +++ /dev/null @@ -1,34 +0,0 @@ -[api] -auth_type = "basic" -debug = "0" -lang = "en" - -[db] -enabled = "1" -type = "pgsql" -name = "bacula" -login = "bacula" -password = "bacula" -ip_addr = "db" -port = "5432" -path = "" - -[bconsole] -enabled = "1" -bin_path = "/opt/bacula/bin/bconsole" -cfg_path = "/opt/bacula/etc/bconsole.conf" -use_sudo = "1" - -[jsontools] -enabled = "1" -use_sudo = "1" -bconfig_dir = "/opt/bacula/etc" -bdirjson_path = "/opt/bacula/bin/bdirjson" -dir_cfg_path = "/opt/bacula/etc/bacula-dir.conf" -bsdjson_path = "/opt/bacula/bin/bsdjson" -sd_cfg_path = "/opt/bacula/etc/bacula-sd.conf" -bfdjson_path = "/opt/bacula/bin/bfdjson" -fd_cfg_path = "/opt/bacula/etc/bacula-fd.conf" -bbconsjson_path = "/opt/bacula/bin/bbconsjson" -bcons_cfg_path = "/opt/bacula/etc/bconsole.conf" - diff --git a/docker/etc-standalone/baculum/Config-api-apache/baculum.users b/docker/etc-standalone/baculum/Config-api-apache/baculum.users deleted file mode 100644 index 1375f69..0000000 --- a/docker/etc-standalone/baculum/Config-api-apache/baculum.users +++ /dev/null @@ -1 +0,0 @@ -admin:YWG41BPzVAkN6 \ No newline at end of file diff --git a/docker/etc-standalone/baculum/Config-web-apache/baculum.users b/docker/etc-standalone/baculum/Config-web-apache/baculum.users deleted file mode 100644 index 1375f69..0000000 --- a/docker/etc-standalone/baculum/Config-web-apache/baculum.users +++ /dev/null @@ -1 +0,0 @@ -admin:YWG41BPzVAkN6 \ No newline at end of file diff --git a/docker/etc-standalone/baculum/Config-web-apache/hosts.conf b/docker/etc-standalone/baculum/Config-web-apache/hosts.conf deleted file mode 100644 index 549421c..0000000 --- a/docker/etc-standalone/baculum/Config-web-apache/hosts.conf +++ /dev/null @@ -1,13 +0,0 @@ -[Main] -auth_type = "basic" -login = "admin" -password = "admin" -client_id = "" -client_secret = "" -redirect_uri = "" -scope = "" -protocol = "http" -address = "localhost" -port = "9096" -url_prefix = "" - diff --git a/docker/etc-standalone/baculum/Config-web-apache/settings.conf b/docker/etc-standalone/baculum/Config-web-apache/settings.conf deleted file mode 100644 index 696890a..0000000 --- a/docker/etc-standalone/baculum/Config-web-apache/settings.conf +++ /dev/null @@ -1,22 +0,0 @@ -[baculum] -debug = "0" -lang = "en" -max_jobs = "15000" -size_values_unit = "decimal" -time_in_job_log = "0" -date_time_format = "Y-M-D R" -login = "admin" - -[users] - -[auth_basic] -allow_manage_users = "1" -user_file = "/usr/share/baculum/htdocs/protected/Web/Config/baculum.users" -hash_alg = "apr-md5" - -[security] -auth_method = "basic" -def_access = "default_settings" -def_role = "normal" -def_api_host = "Main" - diff --git a/docker/etc-standalone/baculum/Config-web-apache/users.conf b/docker/etc-standalone/baculum/Config-web-apache/users.conf deleted file mode 100644 index a6da63a..0000000 --- a/docker/etc-standalone/baculum/Config-web-apache/users.conf +++ /dev/null @@ -1,9 +0,0 @@ -[admin] -long_name = "" -description = "" -email = "" -roles = "admin" -api_hosts = "" -enabled = "1" -ips = "" - diff --git a/docker/etc-standalone/bconsole.conf b/docker/etc-standalone/bconsole.conf deleted file mode 100644 index 05e801a..0000000 --- a/docker/etc-standalone/bconsole.conf +++ /dev/null @@ -1,14 +0,0 @@ -# -# Bacula User Agent (or Console) Configuration File -# -# Copyright (C) 2000-2015 Kern Sibbald -# License: BSD 2-Clause; see file LICENSE-FOSS -# - -Director { - Name = bacula-dir - DIRport = 9101 - address = bacula-standalone - # address = bacula-dir - Password = "XDnaVZYU9F4QhqUGMPxiOXsJaji23mNG3FaAM9Z2q1c/" -} diff --git a/docker/etc-standalone/clientdefs/ubuntu.conf.sample b/docker/etc-standalone/clientdefs/ubuntu.conf.sample deleted file mode 100644 index f06a70a..0000000 --- a/docker/etc-standalone/clientdefs/ubuntu.conf.sample +++ /dev/null @@ -1,32 +0,0 @@ -Job { - Name = "BackupUbuntu" - JobDefs = "DefaultJobToCloudAWS" - FileSet = "ubuntu-fs" - Client = "ubuntu-fd" -} - -Client { - Name = ubuntu-fd - Address = 128.199.45.192 - FDPort = 9102 - Catalog = MyCatalog - Password = "lE-6z_tYeiRRnNLt_5L4w8KplM9Qb43z7" - File Retention = 60 days - Job Retention = 6 months - AutoPrune = yes -} - -FileSet { - Name = "ubuntu-fs" - Include { - Options { - Compression=GZIP - signature=MD5 - } - File = /home - File = /var/lib/mysql - File = /root - File = /share - File = /etc - } -} diff --git a/docker/etc-standalone/clientdefs/w2k16.conf.sample b/docker/etc-standalone/clientdefs/w2k16.conf.sample deleted file mode 100644 index 4421db3..0000000 --- a/docker/etc-standalone/clientdefs/w2k16.conf.sample +++ /dev/null @@ -1,38 +0,0 @@ -Job { - Name = "BackupW2k16ToAWS" - JobDefs = "DefaultJobToCloudAWS" - Client = "w2k16-fd" - Fileset = "w2k16-fs" -} - -FileSet { - Name = "w2k16-fs" - Include { - Options { - signature = MD5 - compression = GZIP - IgnoreCase = yes - } - File = "C:/documents and settings" - File = "C:/Users" - File = "C:/share" - } - Exclude { - File = "*.mp3" - File = "*.mp4" - File = "*.dll" - File = "*.exe" - File = "*.bin" - } -} - -Client { - Name = w2k16-fd - Address = 40.71.101.166 - FDPort = 9102 - Catalog = MyCatalog - Password = "abc123cde456fgh789" - File Retention = 60 days - Job Retention = 6 months - AutoPrune = yes -} diff --git a/docker/etc-standalone/smtp2tg.toml b/docker/etc-standalone/smtp2tg.toml deleted file mode 100644 index 145b265..0000000 --- a/docker/etc-standalone/smtp2tg.toml +++ /dev/null @@ -1,12 +0,0 @@ -[bot] -token = "xxxxxTokenxxxxx" - -[receivers] -"*" = "xxxxxChatIDxxxxx" - -[smtp] -listen = "0.0.0.0:25" -name = "smtp2tg" - -[logging] -debug = true diff --git a/docker/etc/bacula-dir.conf b/docker/etc/bacula-dir.conf index dabe1ba..74b83be 100644 --- a/docker/etc/bacula-dir.conf +++ b/docker/etc/bacula-dir.conf @@ -343,7 +343,7 @@ Console { # Include bacula-dir-cloud-aws.conf for AWS S3 cloud provider -# @/opt/bacula/etc/bacula-dir-cloud-aws.conf +@/opt/bacula/etc/bacula-dir-cloud-aws.conf diff --git a/docker/etc/bacula-sd-s3.conf b/docker/etc/bacula-sd-s3.conf index b085f37..ad8a84d 100644 --- a/docker/etc/bacula-sd-s3.conf +++ b/docker/etc/bacula-sd-s3.conf @@ -36,9 +36,9 @@ Cloud { Name = "S3-cloud-us-west-2" Driver = "S3" HostName = "s3.us-west-2.amazonaws.com" - BucketName = "fametec-backup" - AccessKey = "ABC" - SecretKey = "DEF" + BucketName = "fametec-bacula" + AccessKey = "AKIA33MZDCX3OLN7A6DD" + SecretKey = "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" Protocol = HTTPS UriStyle = "VirtualHost" Truncate Cache = "AfterUpload" diff --git a/docker/etc/bacula-sd.conf b/docker/etc/bacula-sd.conf index 1779c60..007b8ec 100644 --- a/docker/etc/bacula-sd.conf +++ b/docker/etc/bacula-sd.conf @@ -339,6 +339,6 @@ Messages { # # # Include bacula-sd-s3.conf for AWS S3 Cloud provider -# @/opt/bacula/etc/bacula-sd-s3.conf +@/opt/bacula/etc/bacula-sd-s3.conf #