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…













