-
A heads-up on the wp database backup plugin by Austin Matzko
-
Some inspirations – favicons, gradients / textures / shadows, icons, whitespace, alignment, typography, styling
I blogged about my backup concept a while ago – and now, I finally managed to get at least the client side finished.
The problem was that the tar-file with the backup stuff got too big – and this ended up in weird error messages. After some manual testing, I ended up with a final version of the script ~/bin/makebackuptar, as follows:
#!/bin/sh
cd /home/thomas
tar -cjf .clientbackup.tar.bz2 .client-backup
split --byte=1000m .clientbackup.tar.bz2 .clientbackup.tar.bz2.split
mv .clientbackup.tar.bz2.split* /home/thomas/datashare
rm .clientbackup.tar.bz2
# to combine the splitted bz2-file, use cat .clientbackup.tar.bz2.split.* > .clientbackup.tar.bz2
It works very good – the only thing missing right now are some cron jobs and of course something that triggers the backup on the server whenever I turn on the USB HDD…
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.
OK, after yesterday’s disaster, I decided that I need a new backup concept.
Here’s the basic plan:
Read on for the exact setup.
Today is my bad day. I just by accident typed “rm -rdf *” in my home directory on the server – and all data is gone now.
Unfortunately, my last backup is way too old to be useful…. so, I now have to work out whether I can restore some files from this reiserFS partition.
I found a very good tutorial on how to undelete stuff on a ReiserFS – and also another one about how to recover from a crash.
The log of what I did follows just below!