Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
750f2e83
Commit
750f2e83
authored
Sep 09, 2014
by
Mikaël Salson
Browse files
Backup: Trailing / must be put in the variable
Otherwise we save in the root by default
parent
c2942941
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/backup.sh
View file @
750f2e83
...
...
@@ -17,15 +17,15 @@ if [ $# -ge 1 -a "$1" = "-c" ]; then
fi
if
[
$#
-ge
1
]
;
then
DIR
=
"
$1
"
DIR
=
"
$1
/
"
fi
now
=
$(
date
+
"%Y_%m_%d"
)
if
[
$COMPLETE
]
;
then
filename
=
"
$DIR
/
backup_"
$now
filename
=
"
$
{
DIR
}
backup_"
$now
zip
-r
$filename
web2py/applications/vidjil/uploads/ web2py/applications/vidjil/databases/
else
filename
=
"
$DIR
/
backup_essentials_"
$now
filename
=
"
$
{
DIR
}
backup_essentials_"
$now
zip
-r
$filename
web2py/applications/vidjil/databases/ web2py/applications/vidjil/uploads/data_file
*
web2py/applications/vidjil/uploads/fused_file
*
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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