Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup: update rsnapshot configuration #2637

Merged
merged 2 commits into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 5 additions & 3 deletions backup/rsnapshot.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmd_logger /usr/bin/logger

retain daily 7
retain weekly 4
retain monthly 12
retain monthly 6

verbose 2
loglevel 3
Expand All @@ -21,6 +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@nodejs-www:/var/log/nginx/ www-logs/ +rsync_long_args=--exclude "*.log" --exclude "old/*"
backup_script /root/backup_scripts/benchmark_mysql.sh benchmark/
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/