::: SYSTEM :::/└ ::: LINUX :::

Rsync Shell

호딩이 2008. 1. 11. 16:07

rsync 간단하지만

#!/bin/bash

TIMEMARK=/usr/local/ipstorclient/bin/iscli.sh
IPSTOR=192.168.10.175
VDISK=x

echo RSYNC !! PROCESS !!!

BEGIN_BACKUP =  `data +%y-%m-%d-%H:%M:%S`

touch /root/rsync-log/rsync_backup.log
echo $BEGIN_BACKUP.begin >> /root/rsync-log/rsync_backup.log

rsync -avzu --delete /usr/local/src/ /usr/local/src1/

echo $PSTH
$TIMEMARK createtimemark -s $IPSTOR -u root -p ipstor -v $VDISK_ID

END_BACKUP = `data +%y-%m-%d-%H:%M:%S`
echo $END_BACKUP.end >> /root/rsync-log/rsync_backup.log