Comment 7 for bug 1897948

Revision history for this message
Albert Braden (ozzzo) wrote :

I was thinking we would find the latest with -t: replace "$(date +%d-%m-%Y)” with “$HISTORY_NAME" where HISTORY_NAME=`ls -t $BACKUP_DIR/mysqlbackup*|head -1|cut -d- -f2-4`

If we are worried about timestamps changing then we would need a different solution but it's not obvious how we would find the latest if we can't depend on the timestamp. Maybe save it in a file in the /backup dir?