Gitlab Community Edition Instance

Commit dc7a513f authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

fix for blanks in filenames

parent cfde6bfa
......@@ -39,6 +39,8 @@
# improved check for existing CFLs: need to have at least 23 lists within the last 24 hours
# implement "baserc" / backuprc + expirerc for CFL approach
# implement new rc if CFL files are missing with the last 24h
# 2022-06-03 0.2.5 add " at beginning and end of line to mask blanks for $incfile and $expfile
# simple approach, just add it to the already written file
# get current date
today=$(date +"%F");
......@@ -151,6 +153,12 @@ F) # use filelist backup generated for StorNext file systems
# files to be procced with "expire"
cat $delfile $ronfile | sort | uniq > $expfile
# add " at beginning and end of line to mask blanks
sed -i 's/^/"/' $incfile
sed -i 's/$/"/' $incfile
sed -i 's/^/"/' $expfile
sed -i 's/$/"/' $expfile
# run Backups
starttime=$(date +%s.%N)
if [[ -s $incfile ]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment