Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
e7262419
Commit
e7262419
authored
Jan 08, 2020
by
Piotr Gawron
Browse files
don't print uid of backup user
parent
11af4266
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/backup.sh
View file @
e7262419
...
@@ -33,7 +33,7 @@ cd $BACKUP_DIR/tmp
...
@@ -33,7 +33,7 @@ cd $BACKUP_DIR/tmp
tar
-zcf
$BACKUP_FILE
*
tar
-zcf
$BACKUP_FILE
*
#change owner of backup file only if user exists
#change owner of backup file only if user exists
id
-u
$BACKUP_USER
id
-u
$BACKUP_USER
>
/dev/null
status
=
$?
status
=
$?
[
$status
-eq
0
]
&&
chown
$BACKUP_USER
$BACKUP_FILE
[
$status
-eq
0
]
&&
chown
$BACKUP_USER
$BACKUP_FILE
...
...
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