Repository navigation
v1.2.0
Changelog
All notable changes are listed here. The format follows Keep a Changelog,
and the project follows Semantic Versioning.
[Unreleased]
[1.2.0] - 2026-10-14
Added
- Automatic name of the local database.
--local-db auto(the default; in the wizard, an empty answer) names the copy
<server database>_<YYMMDD>, then_2,_3... while that name is taken by a database, by a leftover filestore folder, or by
thedb_nameofodoo.conf. The name is chosen once the server database is known, so it also works when it is picked from the list.
A name typed by hand is used as it is, as before. odoo.confis checked before the download: an option written twice (for example twodb_namelines) stops Odoo at startup,
so the run now refuses it at once, with the line numbers, instead of failing at the restore step after the download.
[1.1.1] - 2026-10-14
Fixed
- The filestore step no longer fails on a server that is in use. GNU
tarexits with 1 when a file changes while it is read
("file changed as we read it"): the copy is complete, so it is now a warning, and the file count check that follows still
reports a difference. A realtarerror (exit 2) or a failure of the local side still stops the run.
[1.1.0] - 2026-10-08
Changed
- The single script is split into modules under
lib/(one file per step inlib/steps/), with an entry point inbin/.
The command line and the behaviour are unchanged. - The embedded Python programs and SQL are now real files (
lib/py/,sql/).
Added
- A main menu when
odoo-mirrorstarts with no arguments in a terminal (arrow keys withwhiptail, a numbered list otherwise):
mirror, back up, restore a zip, list the databases on a server, run a saved profile, check, update, help. - One-line installer (
scripts/install.sh) that installs a release after checking its SHA-256, andodoo-mirror update
(--checkto only look). The previous release is kept for a rollback; a source checkout is never updated this way. scripts/release.shbuilds the release files (odoo-mirror-vX.Y.Z.tar.gz,SHA256SUMS,install.sh) locally and prints the
commands to publish them. It publishes nothing itself.- Tests for the menu and for the release, install and update cycle (all local: no network, no server).
- Leave the remote database name empty (interactive) and the tool lists the databases of the server, with their size, to pick from. It is one read-only
SELECTonpg_database;discoveruses the same query. make install(scripts/install.sh) works with bash, zsh, fish and sh: it uses a folder already inPATH, or adds~/.local/binto the rc files once.PREFIX=/usr/localinstalls system-wide.odoo-mirror <profile>: a saved profile is a command of its own, and it remembers its command (backup,all...).
Newprofilescommand. Profile names cannot be a command word.- The wizard offers to save the answers as a profile.
- Unit tests that need no Odoo, PostgreSQL or server (
make test),make lint,make install, and a CI workflow. docs/ARCHITECTURE.md.
[1.0.0] - 2026-10-08
Added
backup,restore,all,discoverandcheckcommands.- Streaming of the database (plain SQL, gzip) and of the filestore over one multiplexed SSH connection. Nothing is written on the server.
- Zip in the Odoo Database Manager format (
dump.sql,manifest.json,filestore/) with an integrity test. - Neutralized restore, removal of S3 keys, disabling of remote backup targets, and a verification step.
- Wizard, flags, saved profiles,
--steps/--skip,--dry-run. - Step counter, timings, progress bars with speed and ETA, and a log file per run.
- Optional
--anonymizefor private individuals, and--sanitize-sqlfor custom cleanups. - Guards: validated names and paths, refusal to overwrite the configured Odoo database, refusal to restore without neutralize.