Skip to content

Commit

Permalink
backup: add backup for /etc/
Browse files Browse the repository at this point in the history
Adds backup of `/etc/` to `etc/<server>/`. The existing backups of
`/var/lib/jenkins/` are left in `<server>/` to avoid creating new
inodes for unchanged files/directories.
  • Loading branch information
richardlau committed May 1, 2021
1 parent 3549428 commit dfa56bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ 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)
- iojs-softlayer-benchmark: mysql dump (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)


### Folder structure
Expand Down
3 changes: 3 additions & 0 deletions backup/rsnapshot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ ssh_args -p 22 -i /root/.ssh/nodejs_build_backup
cmd_preexec /root/backup_scripts/dist.sh
backup root@ci.nodejs.org:/var/lib/jenkins/ ci.nodejs.org/ +rsync_long_args=--exclude "workspace*"
backup root@ci-release.nodejs.org:/var/lib/jenkins/ ci-release.nodejs.org/ +rsync_long_args=--exclude "workspace*"
backup root@ci.nodejs.org:/etc/ etc/ci.nodejs.org/
backup root@ci-release.nodejs.org:/etc/ etc/ci-release.nodejs.org/
backup root@direct.nodejs.org:/etc/ etc/nodejs.org/
backup root@direct.nodejs.org:/var/log/nginx/ www-logs/ +rsync_long_args=--exclude "*.log" --exclude "old/*"
backup_script /root/backup_scripts/iptables.sh iptables/

0 comments on commit dfa56bf

Please sign in to comment.