[horde] Horde recovery

Reindl Harald h.reindl at thelounge.net
Fri Sep 30 11:04:42 UTC 2011



Am 30.09.2011 12:48, schrieb Hanns Mattes:
> Hi,
> 
> after a fatal crash of a RAID-Array I had to set up my server from
> scratch. I recovered Data and Configuration from my backup, so the
> machine is up and running again.
> 
> Only thing left is the Reinstall/Recovery of Horde. I have the
> mysql-Database with the horde-Table up an running, and I do have a
> backup of the Document-Root in Apache. I don't have a backup of the
> pear-Part of the Installation (Well, in fact I do have, but I dont
> think,  simply copying the files  will work?)

why not?
pear is not rocket science and nothing other than folders and files
i am pushing pear since years from a staging machine to servers

[root at buildserver:~]$ cat /buildserver/distribute-pear.sh
#!/bin/bash
source /Volumes/dune/buildserver/server-list.txt
function rh_push_pear
{
 echo $1
 rsync.sh /usr/share/pear/ root@$1:/usr/share/pear/
 rsync.sh /usr/share/doc/pear/ root@$1:/usr/share/doc/pear/
 rsync.sh /usr/bin/pman root@$1:/usr/bin/pman
 echo ""
}
for item in ${RH_TARGET_SERVERS[*]}
do
  rh_push_pear $item
done
___________________

[root at buildserver:~]$ cat /usr/local/bin/rsync.sh
#!/bin/bash
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$1" == "$2" ]; then
 echo "USAGE: rsync.sh <source> <target> [bwlimit]"
 exit
fi
RSYNC_PARAMS="--no-motd --times --progress --force --recursive --delete-after --links --hard-links --devices
--specials --perms --owner --group --executability --acls --xattrs"
if [ `grep '@' <<< "$1"` ] || [ `grep '@' <<< "$2"` ]; then
 RSYNC_PARAMS="--compress $RSYNC_PARAMS"
fi
if [ "$3" != "" ]; then
 RSYNC_PARAMS="--bwlimit=$3 $RSYNC_PARAMS"
fi
nice -n 19 ionice -c 3 rsync $RSYNC_PARAMS --rsync-path='nice -n 19 ionice -c 3 rsync' "$1" "$2"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.horde.org/archives/horde/attachments/20110930/31de0aa2/attachment.bin>


More information about the horde mailing list