mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-17 10:45:44 +00:00
updates import to handle empty backups
This commit is contained in:
@@ -107,7 +107,7 @@ restore_from_directory() {
|
||||
# Attempt backup restoration
|
||||
backup_path=$(find_latest_backup)
|
||||
if [ $? -eq 0 ] && [ -n "$backup_path" ]; then
|
||||
echo "📦 Found backup directory: $(basename $backup_path)"
|
||||
echo "📦 Found backup: $(basename $backup_path)"
|
||||
if restore_from_directory "$backup_path"; then
|
||||
echo "✅ Database restoration completed successfully!"
|
||||
echo "$(date): Backup successfully restored from $backup_path" > "$RESTORE_SUCCESS_MARKER"
|
||||
|
||||
Reference in New Issue
Block a user