Remote Repository Backup Admin
Software
The software consists of custom-made python scripts that can be found at
https://www.github.com/daniel-meister/rrbackup/.
User Instructions
For user instructions see
RemoteRepositoryBackup
System Configuration
The script is installed as a cron job on
t3fs05
running under the
cmssgm
user.
root@t3fs05 $ crontab -l cmssgm
# fetch backups of remote repositories
# for more details see https://wiki.chipp.ch/twiki/bin/view/CmsTier3/RemoteRepositoryBackupAdmin
37 2 * * * /swshare/rrbackup/bin/run_rrb.py
Software Configuration
The list with all files to backup can be found at
/swshare/rrbackup/config/backup.list
. It consists of 3 columns (separated by any amount of white-space) with the first column being the unique ID of the repository (usually
<username>_<repo_name>
), the second column contains the URL to fetch the resource from (so far only git URLs are supported) and the third column indicates whether the entry is active or not.
Non-active entries are kept in the list so that existing backups can be phased out gradually instead of being deleted at once.
Log Files
All actions are logged to a logfile at
/swshare/rrbackup/log/backup.log
; both the log file path and the log level can be configured in the
run_rrb.py
script.
--
DanielMeister - 2013-07-22