ActiveBackup
Constants
FORMAT = "crails-active-backup"
FORMAT_VERSION = 1
VERSION = "0.1.0"
Class methods
config
Sourceconfig=(config : Config)
Sourceconfigure
SourceCreates a backup and returns the store entry.
Default archive name: backup-<UTC stamp>.tar.gz. Two backups within the same second get a random suffix to avoid clobbering.
latest_name
SourceApplies the retention policy; returns the deleted names.
resolve_database_url
Sourcerestore(name : String | Nil = nil, *, database_url : String | Nil = nil, roots : Hash(String, String) = {} of String => String, clean : Bool = false, verify : Bool = true) : JSON::Any
Restores a backup by name (default: the newest). database_url /
roots override the manifest; clean: true drops objects before
recreating them. Returns the manifest.
store
SourceNested types
- ActiveBackup::Archive
- ActiveBackup::BackupJob
- ActiveBackup::Config
- ActiveBackup::CorruptBackupError
- ActiveBackup::FileNotFoundError
- ActiveBackup::LocalStore
- ActiveBackup::MemoryStore
- ActiveBackup::NotConfiguredError
- ActiveBackup::Pg
- ActiveBackup::PgToolError
- ActiveBackup::RetentionPolicy
- ActiveBackup::Store
- ActiveBackup::Tar