DBAtlas · Atlas de operaciones de bases de datos

Comprobar estado / hora del último backup

Oracle

SELECT session_key, input_type, status,
       start_time, end_time,
       output_bytes_display
FROM v$rman_backup_job_details
ORDER BY start_time DESC
FETCH FIRST 10 ROWS ONLY;

El historial de RMAN también se puede ver con RMAN> LIST BACKUP SUMMARY.

PostgreSQL

-- WAL archiving health (for physical backup/PITR):
SELECT last_archived_wal, last_archived_time,
       failed_count, last_failed_time
FROM pg_stat_archiver;

Los backups lógicos (pg_dump) no se registran dentro de la BD; revise los logs de la herramienta/job de backup.

MySQL

-- There is no built-in backup record; check the backup tool's log.
-- For the binlog-based PITR window:
SHOW BINARY LOGS;

SHOW BINARY LOGS muestra los archivos binlog disponibles (la ventana de PITR); el historial de backups está en el log de la herramienta (Xtrabackup, etc.).

SQL Server

SELECT database_name,
       MAX(backup_finish_date) AS last_backup,
       CASE type WHEN 'D' THEN 'Full' WHEN 'I' THEN 'Diff'
                 WHEN 'L' THEN 'Log' END AS backup_type
FROM msdb.dbo.backupset
GROUP BY database_name, type
ORDER BY database_name;

msdb.dbo.backupset registra cada backup realizado por SQL Server.

MongoDB

// There is no built-in backup record. PITR window = oplog duration:
rs.printReplicationInfo()  // oplog first/last event times

La ventana del oplog determina hasta qué punto atrás puede hacer PITR desde el replica set; el historial de backups está en el log de la herramienta.

Redis

INFO persistence
# check the rdb_last_save_time (epoch), rdb_last_bgsave_status,
# aof_last_bgrewrite_status lines

rdb_last_save_time da la hora del último guardado RDB correcto (Unix epoch); rdb_changes_since_last_save muestra cuántas escrituras aún no tienen backup.

Abrir en DBAtlas →