mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
Ignore error if file does not exist
This commit is contained in:
parent
f6e189e931
commit
1bd0e144c9
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ do
|
|||
if mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" --databases "$db" $MYSQLDUMP_OPTS > "$FILENAME"
|
||||
then
|
||||
gzip -f "$FILENAME"
|
||||
rm "$LATEST"
|
||||
rm "$LATEST" 2> /dev/null
|
||||
ln -s "$FILENAME" "$LATEST"
|
||||
else
|
||||
rm -rf "$FILENAME"
|
||||
|
|
Loading…
Reference in a new issue