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 Apr 29, 2021
1 parent 3541715 commit 760eeb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ 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)
Expand Down
2 changes: 2 additions & 0 deletions backup/rsnapshot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ 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:/var/log/nginx/ www-logs/ +rsync_long_args=--exclude "*.log" --exclude "old/*"
backup_script /root/backup_scripts/iptables.sh iptables/

0 comments on commit 760eeb9

Please sign in to comment.