Changes between Version 5 and Version 6 of TracHotBackupScript


Ignore:
Timestamp:
Aug 12, 2017, 7:44:06 AM (7 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • TracHotBackupScript

    v5 v6  
    55== Description
    66
    7 This plugin is a script that provides some additional tooling 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.
     7This 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.
    88
    9 The script is derived from the 'hot-backup.py' script included in the Subversion distribution which provides similar tooling around Subversion's hotcopy utility.
     9The script is derived from the 'hot-backup.py' script included in the Subversion distribution, which provides similar functionality around Subversion's hotcopy utility.
    1010
    1111{{{
     
    2222  --num-backups=N    Number of prior backups to keep around (0 to keep all).
    2323  --help      -h     Print this help message and exit.
     24}}}
     25
     26Examples:
     27
     28 1. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM`:
     29
     30 {{{#!sh
     31trac-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
     37trac-hot-backup.py --archive-type=gz --num-backups=7 /var/trac/myproj /nfs/backup/trac
    2438}}}
    2539
     
    4660General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    4761
    48 == Examples
    49 
    50  1. Back up the project at `/var/trac/myproj` to `/nfs/backup/trac/myproj-YYYY-mm-dd-HHMM`:
    51 
    52  {{{#!sh
    53 trac-hot-backup.py /var/trac/myproj /nfs/backup/trac
    54 }}}
    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  {{{#!sh
    59 trac-hot-backup.py --archive-type=gz --num-backups=7 /var/trac/myproj /nfs/backup/trac
    60 }}}
    61 
    6262== Recent Changes
    6363