Creando el backup
# trac-admin /path/to/project hotcopy /path/to/backupdir
trac-admin will lock the database while copying.
The resulting backup directory is safe to handle using standard file-based backup tools like tar or dump/restore.
Please, note, that hotcopy command does not overwrite target directory and when such exists, hotcopy ends with error: Command failed: [Errno 17] File exists: This is discussed in #3198.