mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-09-19 15:11:38 +02:00
dup handler: added option to perform a full backup instead of an incremental one.
This commit is contained in:
parent
aa62488656
commit
bd0b2eaea8
@ -82,6 +82,10 @@ exclude = /home/*/.gnupg
|
||||
|
||||
[dest]
|
||||
|
||||
# perform an incremental backup? (default = yes)
|
||||
# if incremental = no, perform a full backup in order to start a new backup set
|
||||
#incremental = yes
|
||||
|
||||
# how many days of data to keep ; default is 60 days.
|
||||
# (you can also use the time format of duplicity)
|
||||
# 'keep = yes' means : do not delete old data, the remote host will take care of this
|
||||
|
@ -19,6 +19,7 @@ getconf vsinclude
|
||||
getconf exclude
|
||||
|
||||
setsection dest
|
||||
getconf incremental yes
|
||||
getconf keep 60
|
||||
getconf sshoptions
|
||||
getconf bandwidthlimit 0
|
||||
@ -92,6 +93,10 @@ if [ "$keep" != "yes" ]; then
|
||||
execstr="${execstr}--remove-older-than $keep "
|
||||
fi
|
||||
|
||||
if [ "$incremental" == "no" ]; then
|
||||
execstr="${execstr}--full "
|
||||
fi
|
||||
|
||||
execstr_serverpart="scp://$destuser@$desthost/$destdir"
|
||||
execstr_clientpart="/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user