Skip to content

Backup (of env backup)

Create, list, delete, and prune environment backups.

of env backup new [env] [db]

Generate an Odoo-compatible ZIP backup (DB dump + filestore + manifest).

Argument Default Description
env main Environment name
db odoo Database to backup
Flag Default Description
--json false JSON output

of env backup ls [env]

List available backups with size, age, and database name.

Argument Default Description
env main Environment name
Flag Default Description
--json false JSON output

of env backup rm [env] [filename]

Delete a specific backup file.

Argument Description
env Environment name
filename Backup filename to delete
Flag Default Description
--json false JSON output

of env backup prune [env]

Delete old backups based on criteria.

Argument Default Description
env Environment name
Flag Description
--keep, -k Keep N most recent, delete rest
--days, -d Delete backups older than N days
--before, -b Delete backups before YYYY-MM-DD
--json JSON output