Compare commits

..

2 Commits

Author SHA1 Message Date
Asif Bacchus
2380d19a0d change default start/end to yesterday 2019-07-25 12:11:38 -06:00
Asif Bacchus
775e2feb2b remove seafile references from sample details file 2019-07-25 12:08:08 -06:00
3 changed files with 19 additions and 17 deletions

View File

@ -4,15 +4,15 @@
"fsPath": "$ROOTPATH$/pilerbackup.sh",
"bookmarks": [
-1,
370,
65,
196,
268,
119,
507,
201,
-1,
-1,
610
-1,
-1,
-1,
-1,
-1,
-1
]
}
]

View File

@ -16,7 +16,7 @@
# the borg documentation
# base configuration directory for borg, all borg parameters use this directory
# as their 'root'. I recommended setups with this being "/var/borgbackup", the
# as their 'root'. I recommend setups with this being "/var/borgbackup", the
# default is "$HOME" or "~$USER" in that order. If you're unsure, try "$HOME"
borgBaseDir="/var/borgbackup"
@ -25,7 +25,7 @@ borgSSHKey="/var/borgbackup/private.key"
# connection string to access the borg repo on your remote backup server
# this is usually in the form user@servername.tld:repoName/
borgConnectRepo="jdoe123@borg.server.net:seafileBackup/"
borgConnectRepo="jdoe123@borg.server.net:pilerBackup/"
# password to access repo
# this was set when the repo was initialized and, while optional, is HIGHLY
@ -33,16 +33,18 @@ borgConnectRepo="jdoe123@borg.server.net:seafileBackup/"
borgRepoPassphrase="p@ssW0rd"
# OPTIONAL: path to text file containing a list (one per line) of files/
# directories to include in your backup along with Seafile data
# directories to include in your backup along with exported data from piler
# see repo wiki for more details
# leave blank if you only want to backup Seafile related files/directories.
borgXtraListPath="/root/seafileBackup/xtraLocations.borg"
# leave blank if you only want to backup emails exported from piler
# NOTE: Your piler configuration and especially your encryption key are good
# things to include here!
borgXtraListPath="/root/scripts/pilerBackup/xtraLocations.borg"
# OPTIONAL: path to file containing files/directories or 'patterns' to be
# excluded in a BORG RECOGNIZED format
# see repo wiki for more details or consult borg documentation
# leave blank for no exclusions.
borgExcludeListPath="/root/seafileBackup/excludeLocations.borg"
borgExcludeListPath="/root/scripts/pilerBackup/excludeLocations.borg"
# parameters to determine how borg deletes aged backups
# more details in the repo wiki and/or borg documentation

View File

@ -127,11 +127,11 @@ scriptHelp () {
printf "${cyan}--start${norm}\n"
printf "Export email starting from this date (inclusive)\n"
printf "Date MUST be provided in the format 'YYYY.MM.DD'\n"
printf "${yellow}(Today's date)${norm}\n\n"
printf "${yellow}(Yesterday's date)${norm}\n\n"
printf "${cyan}--end${norm}\n"
printf "Export email ending at this date (inclusive)\n"
printf "Date MUST be provided in the format 'YYYY.MM.DD'\n"
printf "${yellow}(Today's date)${norm}\n\n"
printf "${yellow}(Yesterday's date)${norm}\n\n"
printf "${magenta}503 functionality\n"
printf "${cyan}-5, --use-503${norm}\n"
@ -201,8 +201,8 @@ webroot="/usr/share/nginx/html"
# piler-export related
exportAll=0
exportStart=$(date +'%Y.%m.%d')
exportEnd=$(date +'%Y.%m.%d')
exportStart=$( date -d 'yesterday' +'%Y.%m.%d' )
exportEnd=$( date -d 'yesterday' +'%Y.%m.%d' )
### process startup parameters