mirror of
https://github.com/edv-pi/pbs-client-docker.git
synced 2025-04-20 07:52:56 +02:00
add possibility to exclude files and folders
This commit is contained in:
parent
e94a086ead
commit
9cb6a3e828
@ -47,6 +47,21 @@ if [ -n "$PBS_DATASTORE_NS" ]; then
|
|||||||
BACKUPCMD+=" --ns ${PBS_DATASTORE_NS}"
|
BACKUPCMD+=" --ns ${PBS_DATASTORE_NS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add possibility to exlude paths
|
||||||
|
if [ -n "$EXCLUDE" ]; then
|
||||||
|
IFS=', ' read -r -a array <<< "$EXCLUDE"
|
||||||
|
for element in "${array[@]}"
|
||||||
|
do
|
||||||
|
BACKUPCMD+=" --exclude ${element}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$CHANGE_DETECT_MODE" ]; then
|
||||||
|
BACKUPCMD+=" --change-detection-mode=${CHANGE_DETECT_MODE}"
|
||||||
|
else
|
||||||
|
BACKUPCMD+=" --change-detection-mode=metadata"
|
||||||
|
fi
|
||||||
|
|
||||||
# Source the variables from the setup_check scripting include file.
|
# Source the variables from the setup_check scripting include file.
|
||||||
source /etc/s6-overlay/s6-rc.d/setup_check/run_include
|
source /etc/s6-overlay/s6-rc.d/setup_check/run_include
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user