Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
166147f3
Commit
166147f3
authored
Mar 06, 2019
by
Piotr Gawron
Browse files
backup creates a folder for backups if necessary
parent
8bfce757
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/backup.sh
View file @
166147f3
...
...
@@ -5,6 +5,7 @@ BACKUP_DIR="/tmp/backup/"
rm
-f
$BACKUP_FILE
rm
-rdf
$BACKUP_DIR
mkdir
-p
$BACKUP_DIR
/tmp
mkdir
-p
"
${
BACKUP_FILE
%/*
}
"
CATALINA_HOME
=
"/var/lib/tomcat7"
cp
$CATALINA_HOME
/webapps/
*
.war
"
$BACKUP_DIR
/tmp"
2>/dev/null
...
...
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