Changes between Version 5 and Version 6 of TracHotBackupScript
- Timestamp:
- Aug 12, 2017, 7:44:06 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracHotBackupScript
v5 v6 5 5 == Description 6 6 7 This plugin is a script that provides some additional toolingaround TracAdmin's hotcopy function. The script supports archiving the backup in '''gzip''', '''bzip2''' or '''zip''' format and can be configured to retain a specified number of past backups. Ideal for use as a cron job.7 This plugin is a script that provides some additional functionality around TracAdmin's hotcopy function. The script supports archiving the backup in '''gzip''', '''bzip2''' or '''zip''' format and can be configured to retain a specified number of past backups. Ideal for use as a cron job. 8 8 9 The script is derived from the 'hot-backup.py' script included in the Subversion distribution which provides similar toolingaround Subversion's hotcopy utility.9 The script is derived from the 'hot-backup.py' script included in the Subversion distribution, which provides similar functionality around Subversion's hotcopy utility. 10 10 11 11 {{{ … … 22 22 --num-backups=N Number of prior backups to keep around (0 to keep all). 23 23 --help -h Print this help message and exit. 24 }}} 25 26 Examples: 27 28 1. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM`: 29 30 {{{#!sh 31 trac-hot-backup.py /var/trac/myproj /nfs/backup/trac 32 }}} 33 34 2. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM.tar.gz` and delete all but the 7 most recent backups, including the one just created: 35 36 {{{#!sh 37 trac-hot-backup.py --archive-type=gz --num-backups=7 /var/trac/myproj /nfs/backup/trac 24 38 }}} 25 39 … … 46 60 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 47 61 48 == Examples49 50 1. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM`:51 52 {{{#!sh53 trac-hot-backup.py /var/trac/myproj /nfs/backup/trac54 }}}55 56 2. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM.tar.gz` and delete all but the 7 most recent backups, including the one just created:57 58 {{{#!sh59 trac-hot-backup.py --archive-type=gz --num-backups=7 /var/trac/myproj /nfs/backup/trac60 }}}61 62 62 == Recent Changes 63 63