a3ffa9dc31
Old log from Bazaar was: ------------------------------------------------------------ revno: 6 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Tue 2016-05-17 15:59:19 -0500 message: Fixing Crontab issue on client install Updating server backup scripts to be smarter for user conf. ------------------------------------------------------------ revno: 5 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Fri 2016-05-06 14:26:00 -0500 message: Should be a | not a > ------------------------------------------------------------ revno: 4 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Fri 2016-05-06 14:24:21 -0500 message: Updating Makefile and ignore list ------------------------------------------------------------ revno: 3 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Thu 2016-04-21 15:38:52 -0500 message: Filling out README and adding key creation to Makefile ------------------------------------------------------------ revno: 2 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Thu 2016-04-21 15:30:52 -0500 message: Adding ignore list ------------------------------------------------------------ revno: 1 committer: dev <dev@aninix.net> branch nick: Aether timestamp: Wed 2016-04-20 16:14:34 -0500 message: Initial branch -- NOT committing SSH keys or archive.
51 lines
1.3 KiB
Bash
Executable File
51 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
export BACKUPDIR="/usr/local/backup"
|
|
|
|
## Backup small development ##
|
|
|
|
rsync -avzl --delete-after /root/bin/ "$BACKUPDIR"/root/bin/
|
|
|
|
## Backup configuration ##
|
|
cp -r /etc/skel "$BACKUPDIR"
|
|
cp /etc/bash.bashrc "$BACKUPDIR"/bash.bashrc
|
|
cp /etc/vimrc "$BACKUPDIR"/vimrc
|
|
|
|
## Backup the good servers ##
|
|
|
|
### SSHD ###
|
|
rsync -avzl --delete-after /etc/ssh "$BACKUPDIR"/ssh
|
|
|
|
### Lighttpd ###
|
|
rsync -avzl --delete-after /etc/lighttpd/ "$BACKUPDIR"/lighttpd
|
|
rsync -avzl --delete-after /srv/http/ "$BACKUPDIR"/http/
|
|
|
|
### Cron ###
|
|
crontab -l > "$BACKUPDIR"/$(whoami)-crontab
|
|
|
|
### IRC Server ###
|
|
rsync -avzl --delete-after /etc/unrealircd/ "$BACKUPDIR"/unrealircd
|
|
rsync -avzl --delete-after /etc/anope/ "$BACKUPDIR"/anope
|
|
# TODO add backup
|
|
|
|
### TheRaven ###
|
|
# Added under Bazaar source
|
|
|
|
### Bazaar ###
|
|
rsync -avzl --delete-after /srv/bazaar/ "$BACKUPDIR"/bazaar
|
|
rsync -avzl --delete-after /usr/local/src/ "$BACKUPDIR"/src
|
|
rsync -avzl --delete-after /usr/local/etc/ "$BACKUPDIR"/usr-local-etc
|
|
|
|
### Wiki ###
|
|
rsync -avzl --delete-after /usr/share/webapps/mediawiki/LocalSettings.php "$BACKUPDIR"/mediawiki-localsettings.php
|
|
|
|
### Singularity ###
|
|
# Backed up by postgres backup
|
|
|
|
### PostgreSQL ###
|
|
# TODO
|
|
|
|
# TODO evaluate for other services not covered.
|
|
|
|
date > /var/log/server-backup.log
|