updates import to handle empty backups

This commit is contained in:
Deckard
2025-10-14 21:31:54 -04:00
parent 697c7b1c7b
commit d24da206e2
2 changed files with 69 additions and 3 deletions

View File

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