atlas.backups.restore_backup
Details
Type: function
File: atlas/backups.py
Lines: 169–239
Signature: (data_dir: Path, database_path: Path, backup_id: str, dry_run: bool=False) -> BackupRestoreResult
Docstring
Restore the database from a backup. A pre-restore backup of the current database is created before overwriting it. The caller is responsible for closing any open database connections.
Children
| Name | Type | Line |
|---|---|---|
| atlas.backups.restore_backup.backup_path | attribute | 180 |
| atlas.backups.restore_backup.verify | attribute | 192 |