RDS chụp snapshot đầy đủ của ổ lưu trữ ngay sau khi tạo DB instance, sau đó mỗi ngày một snapshot trong backup window. Giữa các snapshot, RDS tải nhật ký giao dịch (WAL) lên Amazon S3 mỗi 5 phút. Kết hợp lại, bạn có thể khôi phục cơ sở dữ liệu về bất kỳ giây nào giữa earliest restorable time và latest restorable time.
Trong Amazon RDS console, chọn rdspg-lab-db, rồi mở tab Maintenance & backups:
rds:preupgrade-..., snapshot RDS chụp ngay trước khi nâng cấp phiên bản chính ở bước 2.2.
Mở AWS CloudShell và chạy:
aws rds describe-db-instances \
--db-instance-identifier rdspg-lab-db \
--query 'DBInstances[0].[BackupRetentionPeriod,PreferredBackupWindow,LatestRestorableTime]' \
--output table
aws rds describe-db-snapshots \
--db-instance-identifier rdspg-lab-db \
--query 'DBSnapshots[].[DBSnapshotIdentifier,SnapshotType,Status]' \
--output table
1), backup window và latest restorable time theo UTC giống trên console.automated. Snapshot do bạn tự chụp có loại manual.
Bạn không thể tự xóa automated snapshot. RDS xóa nó khi quá thời gian lưu. Khi xóa DB instance, bạn có thể chọn giữ automated backup cho phần còn lại của thời gian lưu.