added checkpoint interval variable for borg
This commit is contained in:
parent
d66a8b859b
commit
cd6f19c0b1
@ -64,6 +64,12 @@ borgRemoteSSHKeyfile=/var/borgbackup/rsync.key
|
|||||||
# Borg remote path (default for rsync: borg1)
|
# Borg remote path (default for rsync: borg1)
|
||||||
borgRemotePath=borg1
|
borgRemotePath=borg1
|
||||||
|
|
||||||
|
# Borg 'checkpoint' interval in seconds
|
||||||
|
# This determines when snapshots are taken so that interrupted backups
|
||||||
|
# can be restored from that point in time
|
||||||
|
# (default: 300 seconds = 5 minutes)
|
||||||
|
borgCheckpoint=300
|
||||||
|
|
||||||
# FULL path to Borg repo details file (explained in blog)
|
# FULL path to Borg repo details file (explained in blog)
|
||||||
# This is a 2 line file in the EXACT format:
|
# This is a 2 line file in the EXACT format:
|
||||||
# repo-name in format user@server.tld:repo
|
# repo-name in format user@server.tld:repo
|
||||||
@ -233,7 +239,7 @@ mapfile -t xtraFiles < $borgXtraFiles
|
|||||||
|
|
||||||
## Call BorgBackup
|
## Call BorgBackup
|
||||||
borg --show-rc create --list --exclude-from $borgExcludeFiles \
|
borg --show-rc create --list --exclude-from $borgExcludeFiles \
|
||||||
::`date +%Y-%m-%d_%H%M%S` \
|
--checkpoint-interval $borgCheckpoint ::`date +%Y-%m-%d_%H%M%S` \
|
||||||
"${xtraFiles[@]}" \
|
"${xtraFiles[@]}" \
|
||||||
"$ncdata" \
|
"$ncdata" \
|
||||||
"$sqlDumpDir/$sqlDumpFile" 2>> $logFile
|
"$sqlDumpDir/$sqlDumpFile" 2>> $logFile
|
||||||
|
Loading…
Reference in New Issue
Block a user