As already discussed yesterday, I am going for some serious backup stuff now.
Here’s the server’s rsnapshot.conf:
config_version 1.2
snapshot_root /mnt/usbhd/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_logger /usr/bin/logger
cmd_du /bin/du
cmd_rsnapshot_diff /usr/bin/rsnapshot-diff
interval fullbackup 6
verbose 2
loglevel 3
logfile /var/log/rsnapshot.log
exclude_file /etc/rsnapshot.exclude
link_dest 1
# LOCALHOST
backup /home/ localhost/
backup /etc/ localhost/
backup_script /home/thomas/.bin/backupmediawiki localhost/zuhausewiki/
And the new file ~/.bin/backupmediawiki looks like this:
#!/bin/sh
/usr/bin/mysqldump --user=root --password=**** wikidb > wikidb.sql
/usr/bin/tar -cjf zuhausewiki.images.tar.bz2 /var/www/localhost/htdocs/mediawiki/images
Now, with rsnapshot fullbackup, the backup process is initiated. The only thing I have to work on is finding out how to start it automatically when the USB HDD is plugged in. As the Gentoo Wiki is down at the moment, I will wait for this.













