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).

The dump and the filestore are streamed to the host: pg_dump writes dump.sql directly to the backup's working directory and the filestore is archived by a low-priority tar inside the Odoo container and extracted while it streams, so memory usage stays constant and the Docker daemon only relays bytes. Backing up a filestore of several GB is therefore safe on a host that runs other environments. A database without attachments yet gives a backup with an empty filestore/.

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