Ignore error if file does not exist

This commit is contained in:
Manuel 2018-11-08 14:34:29 +01:00 committed by GitHub
parent f6e189e931
commit 1bd0e144c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"