Wednesday, December 3, 2008

Your Main Backup and Replication Data Are Gone


Without replication what would happen if your Ahsay OBS user partition became corrupted?

The following options are preventative. They don't save your data, but they do enable you to recover all users and profiles; thus, allowing all client to perform a full backup immediately.

Just a thought!

#/bin/bash
#Author: Jim Robinson
#Date: 3 Dec 2008
#Contact: www.PeakBackup.com
#
#Description: Backup all user db information to include reports

filename=`date +%d%m%Y-%H:%M`

find /path/to/a/directory/ \
/path/to/another/directory2/ \
/path/to/another/diretory3 \
-name db -maxdepth 2 -type d | zip -rp $filename.zip -@

-----------------------------------------------------------------

#/bin/bash
#Author: Jim Robinson
#Date: 3 Dec 2008
#Contact: www.PeakBackup.com
#
#Description: Backup user login and backup set information only

filename=`date +%d%m%Y-%H:%M`

find /path/to/a/directory/ \
/path/to/another/directory2/ \
/path/to/another/diretory3 \
-name Profile.xml -maxdepth 3 -type f | zip -rp $filename.zip -@