User Tools

Site Tools


application_specific_backups:trac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
application_specific_backups:trac [2009/09/08 14:18]
olaf created
application_specific_backups:trac [2009/09/08 14:24] (current)
olaf
Line 1: Line 1:
 +http://​trac.edgewall.org/​ : Wiki & Bugtracking
 +\\
 Due to some circumstances on our Debian server with multiple (versions of) Trac installations I had to adapt it a bit, but the basis is [[http://​code.google.com/​p/​trac-backup/​|Trac-backup]] as found on Google Code. Due to some circumstances on our Debian server with multiple (versions of) Trac installations I had to adapt it a bit, but the basis is [[http://​code.google.com/​p/​trac-backup/​|Trac-backup]] as found on Google Code.
  
Line 13: Line 15:
 </​code>​ </​code>​
  
-This script executes the next one with the correct ​parameter:+This script executes the next one with the correct ​parameters. 
 +\\ 
 +I adapted that script to use an adjusted version of the trac-admin script as that needed some editing to work with the correct version of Trac on our server. So you probably want to stick to the default "​trac-admin"​
  
 <​code>​ <​code>​
Line 20: Line 24:
 # OZ: # OZ:
 #export PYTHONPATH=/​usr/​lib/​python2.4:/​usr/​lib/​python2.4/​site-packages #export PYTHONPATH=/​usr/​lib/​python2.4:/​usr/​lib/​python2.4/​site-packages
-#:/​home/​system/​trac/​makeline 
-#export TRAC_ENV=/​home/​system/​trac/​makeline 
 TRACADMIN=/​usr/​bin/​trac-adminconsole TRACADMIN=/​usr/​bin/​trac-adminconsole
  
Line 71: Line 73:
 done done
  
 +</​code>​
 +
 +
 +For sake of completeness hereby the trac-adminconsole script:
 +<​code>​
 +
 +#​!/​usr/​bin/​python
 +# -*- coding: iso8859-1 -*-
 +__author__ = '​Daniel Lundin <​daniel@edgewall.com>,​ Jonas Borgstr<​F6>​m <​jonas@edgewall.com>'​
 +__copyright__ = '​Copyright (c) 2005 Edgewall Software'​
 +__license__ = """​
 + ​Copyright (C) 2003, 2004, 2005 Edgewall Software
 + ​Copyright (C) 2003, 2004 Jonas Borgstr<​F6>​m <​jonas@edgewall.com>​
 + ​Copyright (C) 2003, 2004 Daniel Lundin <​daniel@edgewall.com>​
 + All rights reserved.
 +
 + This software is licensed as described in the file COPYING, which
 + you should have received as part of this distribution. The terms
 + are also available at http://​trac.edgewall.org/​wiki/​TracLicense.
 +
 + This software consists of voluntary contributions made by many
 + ​individuals. For the exact contribution history, see the revision
 + ​history and logs, available at http://​trac.edgewall.org/​log/​."""​
 +
 +import sys
 +
 +from trac.admin.console import run
 +sys.exit(run(sys.argv[1:​]))
 </​code>​ </​code>​
application_specific_backups/trac.1252415921.txt.gz · Last modified: 2009/09/08 14:18 by olaf