Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
8be6b861
Commit
8be6b861
authored
May 08, 2016
by
Igor Pecovnik
Browse files
bugfix
parent
892895e8
Changes
1
Show whitespace changes
Inline
Side-by-side
backup and restore/backup.sh
View file @
8be6b861
...
@@ -57,7 +57,10 @@ function conf_backup ()
...
@@ -57,7 +57,10 @@ function conf_backup ()
IFS
=
$'
\n
'
IFS
=
$'
\n
'
for
next
in
`
cat
$filename
`
for
next
in
`
cat
$filename
`
do
do
if
[[
$next
!=
\#
*
]]
;
then
echo
$next
[[
-f
$next
||
-d
$next
]]
&&
echo
"
$next
"
>>
$tmpfilename
[[
-f
$next
||
-d
$next
]]
&&
echo
"
$next
"
>>
$tmpfilename
fi
done
done
tar
cvPfz
$COPY_TO
/
$FILEBACKUPNAME
-allfiles
.tgz
-T
$tmpfilename
--exclude
=
'*.sock'
&> /dev/null
tar
cvPfz
$COPY_TO
/
$FILEBACKUPNAME
-allfiles
.tgz
-T
$tmpfilename
--exclude
=
'*.sock'
&> /dev/null
service samba start &> /dev/null
service samba start &> /dev/null
...
...
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