gufo-thor backup¶
Create, list, and remove database backups. Backups include PostgreSQL, MongoDB, and ClickHouse by default. Use --postgres, --mongo, and --clickhouse to select one or more services; when no service options are specified, all supported database services are backed up.
Synopsis¶
gufo-thor backup create [<name>] [--postgres] [--mongo] [--clickhouse]
gufo-thor backup ls
gufo-thor backup rm <name>
Commands¶
create¶
Create backups for supported database services. The optional first argument sets the backup name; if omitted, Thor uses the current timestamp. Backup files and generated restore scripts are stored in data/backup/<name>.
Names must start with a letter or digit and may contain letters, digits, periods, underscores, and hyphens; the maximum length is 128 characters.
gufo-thor backup create
gufo-thor backup create before-upgrade
gufo-thor backup create postgres-only --postgres
gufo-thor backup create databases --postgres --mongo
gufo-thor backup create --clickhouse
ls¶
List backups sorted by creation timestamp, newest first. The table reports the duration and size of each database dump, along with the total size.
name | timestamp | duration | postgres size | mongo size | clickhouse size | total size
---------------+---------------------+----------+---------------+------------+-----------------+-----------
before-upgrade | 2026-10-01 15:59:33 | 42s | 720.4K | 8.2M | 4.1M | 13.0M
rm¶
Remove the named backup directory and all files it contains from data/backup.