Compare commits

...

2 Commits

Author SHA1 Message Date
Asif Bacchus
90f8118db5 additional files to backup -- sample default 2019-07-25 02:56:32 -06:00
Asif Bacchus
ccbd7541c2 set proper borg backup source paths 2019-07-25 00:56:49 -06:00
3 changed files with 75 additions and 8 deletions

View File

@ -9,10 +9,10 @@
196, 196,
268, 268,
119, 119,
507,
-1, -1,
-1, -1,
-1, 610
614
] ]
} }
] ]

View File

@ -509,16 +509,12 @@ export TMPDIR="${borgBaseDir}/tmp"
if [ "$exclusions" -eq 0 ]; then if [ "$exclusions" -eq 0 ]; then
borgCMD="borg --show-rc create ${borgCreateParams} \ borgCMD="borg --show-rc create ${borgCreateParams} \
::$(date +%Y-%m-%d_%H%M%S) \ ::$(date +%Y-%m-%d_%H%M%S) \
${seafDir} \ ${exportDir}"
${seafData} \
${sqlDumpDir}"
elif [ "$exclusions" -eq 1 ]; then elif [ "$exclusions" -eq 1 ]; then
borgCMD="borg --show-rc create ${borgCreateParams} \ borgCMD="borg --show-rc create ${borgCreateParams} \
--exclude-from ${borgExcludeListPath} \ --exclude-from ${borgExcludeListPath} \
::$(date +%Y-%m-%d_%H%M%S) \ ::$(date +%Y-%m-%d_%H%M%S) \
${seafDir} \ ${exportDir}"
${seafData} \
${sqlDumpDir}"
fi fi
# add extra locations if defined # add extra locations if defined

71
xtraLocations.borg Normal file
View File

@ -0,0 +1,71 @@
# Files and directories listed here will be included in your borg backup along
# with your EML files exported from piler.
# List the path to files/directories one per line.
# Any blank lines will be ignored.
# Any lines starting with '#' will be ignored as a comment.
# For consistency, you should include the trailing slash for directories.
# important system configuration files for reference during a restore
/etc/fstab
/etc/network/interfaces
/etc/network/interfaces.d/
/etc/systemd/timesyncd.conf
# ssh configuration and hostkeys
/etc/ssh/
# apt configuration (auto updates and source lists)
/etc/apt/sources.list
/etc/apt/sources.list.d/
/etc/apt/listchanges.conf
/etc/apt/apt.conf.d/50unattended-upgrades
/etc/apt/apt.conf.d/20auto-upgrades
# user profile defaults and configurations
/etc/profile
/etc/bash.bashrc
/etc/skel/
/etc/nanorc
# root user files
/root/.bashrc
/root/.ssh/
/root/scripts/
### piler configuration files and KEY!
/etc/piler/
### configuration files for programs supporting piler
# letsencrypt
/etc/letsencrypt/
# mysql/mariadb
/etc/mysql/my.cnf
/etc/mysql/conf.d/
# NGINX
/etc/nginx/
/usr/share/nginx/html/
# PHP
/etc/php/
# exim4 (outgoing smarthost for piler)
/etc/exim4/
/etc/aliases
### other installed program configurations
# fail2ban
/etc/fail2ban/fail2ban.local
/etc/fail2ban/jail.local
/etc/fail2ban/action.d/ufw.conf
/etc/fail2ban/jail.d/
# logwatch
/etc/logwatch/