summaryrefslogtreecommitdiff
path: root/etc/mf-backup
blob: 98d6ff5b0296de16cff4463f4089cafae126a67e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/bash

# Hostname to be used within the script. By default
# this should be set to $HOSTNAME from the system environment
# but can be overwritten with any other string as long
# as it makes sense to Kopia
X_HOSTNAME=$HOSTNAME

# Basic directories to be backed up
DIRS_TO_BACKUP="/etc /home /root /usr/local"

# Backup a MariaDB - Y or y for "yes", anything else no
# Make sure /var/lib/mysql-backup exists and has enough
# space to dump the full database with mysqldump
BACKUP_MARIADB=n

# Backup a NextCloud instance - Y or y for "yes", anything else no
# Make sure /var/lib/mysql-backup exists and has enough
# space to dump the full database with mysqldump. Also ensure
# that /usr/local/bin/occ exists as a wraper for the PHP OCC interface
# for Nextcloud. Data assumed to be in /data/nextcloud.
# Note that BACKUP_MARIADB has no impact on BACKUP_NEXTCLOUD
BACKUP_NEXTCLOUD=m

# B2 Key ID and Key for replication to Backblaze B2
B2_KEY_ID=
B2_KEY=

# Kopia Options
KOPIA_OPTS="--disable-color"

# Kopia bucket prefix --> Bucket name is ${KOPIA_PREFIX}${X_HOSTNAME}
KOPIA_PREFIX="mfamily-bu-"