Version 2 (modified by rafaelsilva, 15 anos atrás) (diff)

--

Trac Backup

Since Trac uses a database backend, it requires some extra care to safely create a backup of a TracEnvironment. Luckily, TracAdmin has a command to make backups easier - hotcopy. Desde que o Trac usa um banco de dados backend, ele requer alguns cuidados extra para criar um backup seguro de um TracEnvironment. Sortemente, TracAdmin tem um comando para fazer backups facilmente - hotcopy.

Note: Trac uses the hotcopy nomenclature to match that of Subversion, to make it easier to remember when managing both Trac and Subversion servers. Nota: O Trac usa a nomeclatura hotcopy para igualar ao Subversion, faz com que fique mais fácil de ser lembrado quando estiver gerencinado um servidor Trac e um servidor Subversion.

Criando um Backup

To create a backup of a live TracEnvironment, simply run: Para criar um backup de um TracEnvironment, basta execultar:

  $ trac-admin /some/where/mytracenv hotcopy /my/vault/mytracenv-backup

Note: TracAdmin will lock the database while copying. Nota: TracAdmin irá travar o banco de dados enquanto estiver fazendo a cópia.

The resulting backup copy is safe to handle using standard file-based backup tools like tar or dump/restore. O backup é fácil

Restoring a Backup

Backups are simply a copied snapshot of the entire TracEnvironment directory structure, including the SQLite database.

To restore an environment from a backup, simply shut down your Trac service (Web server or tracd), restore the directory structure from backup and restart the service.


See also: TracAdmin, TracGuide

 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.