This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Dumps a Trac database to a compressed sql file by excluding tables | |
containing sensitive data, such as session cookies. | |
Only works on Trac instances using a postgres database. | |
Usage: trac-env.py <projenv> <outfile> | |
projenv: path to Trac's environment directory |