Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bnachtw
TSM-Scripts
Commits
dc7a513f
Commit
dc7a513f
authored
Jun 03, 2022
by
Bjoern Nachtwey
Browse files
fix for blanks in filenames
parent
cfde6bfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Backup/backup-SNFS.sh
View file @
dc7a513f
...
...
@@ -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
]]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment