Skip to content
Snippets Groups Projects
Commit 2a47da88 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

save space: --no-cache and verbose

parent 3bc9fef5
No related branches found
No related tags found
1 merge request!325046 finetune restic params
......@@ -114,11 +114,16 @@ If your /root partition has a limited size and/ or you have a lot of files
`restic_cachedir = [full path]`
The default verbose of IML backup for restic is 2. During file transfer
this shows unchanged/ new/ deleted files. Change it to a less value
to generate less log data.
Restic by default stores file indexes locally. To save space in `restic_cachedir`
you can disable the file index but the backup will run much slower.
`restic_verbose = 2`
`restic_nochache = false`
The default verbose of IML backup for restic is 0.
If you want to see unchanged/ new/ deleted files set it to "2". But This generates
larger logs in [installdir]/logs/.
`restic_verbose = 0`
A file transfer can be tagged. Each restic backup gets a defined tag
......
......@@ -247,8 +247,9 @@ bin = restic.
```text
# use another cache directory than /root/.cache/restic
restic_cachedir =
restic_nocache = false
restic_verbose = 2
restic_verbose = 0
restic_tag = imlbackup
restic_mountpoint = /mnt/restore
......
......@@ -139,8 +139,9 @@ duplicity_cachedir =
# use another cache directory than /root/.cache/restic
restic_cachedir =
restic_nocache = false
restic_verbose = 2
restic_verbose = 0
restic_tag = imlbackup
restic_mountpoint = /mnt/restore
......
......@@ -58,8 +58,20 @@
}
# return a string with backup parameters that will be added to defaults
function t_getParamBackup(){
local _tag
local _nocacheFlag
# tagging
echo -n --tag $( _j_getvar ${STORAGEFILE} "${CFGPREFIX}tag" )
_tag=$( _j_getvar ${STORAGEFILE} "${CFGPREFIX}tag" )
if [ "$_tag" != "" ]; then
echo -n "--tag $_tag "
fi
# no cache ... to create smaller local cache dirs, but backup 3 times slower
_nocacheFlag=$( _j_getvar ${STORAGEFILE} "${CFGPREFIX}nocache" )
if [ "$_nocacheFlag" != "" ] && [ "$_nocacheFlag" != "0" ] && [ "$_nocacheFlag" != "false" ]; then
echo -n "--no-cache "
fi
}
# return a cli parameter for a single exlude directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment