A collection of scripts, configuration and information regarding what's currently being backed up.
- ci.nodejs.org:
- full backup of /var/lib/jenkins (rotated, excluding workdirs)
- full backup of /etc (rotated)
- iptables rules (rotated)
- ci-release.nodejs.org:
- full backup of /var/lib/jenkins (rotated, excluding workdirs)
- full backup of /etc (rotated)
- iptables rules (rotated)
- nodejs-www:
- /home/dist/iojs: all artifacts for iojs.org (static, no deletion)
- /home/dist/nodejs: all artifacts for nodejs.org (static, no deletion)
- /home/libuv/www/dist: all artifacts for libuv.org (static, no deletion)
- /var/log/nginx: all logs for nodejs, iojs and libuv (rotated)
- full backup of /etc (rotated)
A list of the backup folder structure to make it easier navigating around.
filename | description |
---|---|
archive/ |
archived content |
archive/nodejs-logs |
contains compressed logfiles from the old nodejs server |
archive/old-jenkins.tar.xz |
a full copy of jenkins pre-security-vulnerability |
static/ |
backed up content intended for non-rotation |
periodic/ |
periodically updated storage managed by rsnapshot |
Dependencies:
- rsync 3.x (or newer)
- rsnapshot 1.2 (or newer)
Note: You will likely want ~1Tb storage available on /backup.
- Install dependencies
- Copy the folder
backup_scripts
to /root/ - Place rsnapshot.conf somewhere (and possibly change paths below)
- Create the folder
/backup
(or edit configs to use another path) - Add scripts to cron:
50 23 * * * /usr/bin/rsnapshot -c /usr/local/etc/rsnapshot.conf daily 40 23 * * 6 /usr/bin/rsnapshot -c /usr/local/etc/rsnapshot.conf weekly && /root/backup_scripts/remove_old.sh ci-release.nodejs.org && /root/backup_scripts/remove_old.sh ci.nodejs.org 30 23 1 * * /usr/bin/rsnapshot -c /usr/local/etc/rsnapshot.conf monthly
- Edit your ssh config as needed (likely the benchmark host)
- Place the backup key retrieved from the secrets repo in
/root/.ssh/nodejs_build_backup
- Add your jenkins credentials to /root/.jenkins_credentials (so we can reload jenkins after updating the folder structure)