Redmatrix backup should be > 1023 bytes
This commit is contained in:
parent
9b317bf230
commit
5bdafef4e5
|
@ -9449,7 +9449,7 @@ quit" > $INSTALL_DIR/batch.sql
|
||||||
echo 'DAILYFILE=/var/backups/redmatrix_daily.sql' >> /usr/bin/backupdatabases
|
echo 'DAILYFILE=/var/backups/redmatrix_daily.sql' >> /usr/bin/backupdatabases
|
||||||
echo 'mysqldump --password="$MYSQL_PASSWORD" redmatrix > $TEMPFILE' >> /usr/bin/backupdatabases
|
echo 'mysqldump --password="$MYSQL_PASSWORD" redmatrix > $TEMPFILE' >> /usr/bin/backupdatabases
|
||||||
echo 'FILESIZE=$(stat -c%s $TEMPFILE)' >> /usr/bin/backupdatabases
|
echo 'FILESIZE=$(stat -c%s $TEMPFILE)' >> /usr/bin/backupdatabases
|
||||||
echo 'if [ "$FILESIZE" -eq "0" ]; then' >> /usr/bin/backupdatabases
|
echo 'if [ "$FILESIZE" -lt "1024" ]; then' >> /usr/bin/backupdatabases
|
||||||
echo ' if [ -f $DAILYFILE ]; then' >> /usr/bin/backupdatabases
|
echo ' if [ -f $DAILYFILE ]; then' >> /usr/bin/backupdatabases
|
||||||
echo ' cp $DAILYFILE $TEMPFILE' >> /usr/bin/backupdatabases
|
echo ' cp $DAILYFILE $TEMPFILE' >> /usr/bin/backupdatabases
|
||||||
echo '' >> /usr/bin/backupdatabases
|
echo '' >> /usr/bin/backupdatabases
|
||||||
|
|
Loading…
Reference in New Issue