ini salah satu contoh menyamakan direktori debian.org,... tapi kalo ntp saya gak punya 
contohnya,... hehehehe


#! /bin/sh
set -e

# Set the variables below to fit your site. You can then use cron to have this
# script run daily to automatically update your copy of the archive
#
# TO is the destination for the base of the debian directory (the dir that
# holds dists/ and ls-lR)
#
# RSYNC_HOST is the site you have chosen from the mirrors file
#
# RSYNC_DIR is the directory given in the Archive-rsync: line of the
# mirrors file for the site you have chosen to mirror.
#
# chmod 744 anonftpsync
#
# You MUST have rsync 2.0.16-1 or newer which is available in slink

# With a blank EXCLUDE you will mirror the entire archive.
EXCLUDE="--exclude binary-alpha/ --exclude disks-alpha/     --exclude *alpha.deb     
--exclude *alpha.gz\
         --exclude binary-arm/        --exclude disks-arm/       --exclude *arm.deb    
   --exclude *arm.gz \
         --exclude binary-hppa/       --exclude disks-hppa/      --exclude *hppa.deb   
   --exclude *hppa.gz \
         --exclude binary-hurd-i386/  --exclude disks-hurd-i386/ --exclude 
*hurd-i386.deb --exclude *hurd-i386.gz \
         --exclude binary-ia64/       --exclude disks-ia64/      --exclude *ia64.deb   
   --exclude *ia64.gz \
         --exclude binary-m68k/       --exclude disks-m68k/      --exclude *m68k.deb   
   --exclude *m68k.gz \
         --exclude binary-mips/       --exclude disks-mips/      --exclude *mips.deb   
   --exclude *mips.gz \
         --exclude binary-mipsel/     --exclude disks-mipsel/    --exclude *mipsel.deb 
   --exclude *mipsel.gz \
    --exclude binary-powerpc/    --exclude disks-powerpc/   --exclude *powerpc.deb   
--exclude *powerpc.gz \
         --exclude binary-s390/       --exclude disks-s390/      --exclude *s390.deb   
   --exclude *s390.gz \
         --exclude binary-sh/         --exclude disks-sh/        --exclude *sh.deb     
   --exclude *sh.gz \
         --exclude binary-sparc/      --exclude disks-sparc/     --exclude *sparc.deb  
   --exclude *sparc.gz \
         --exclude bo/ --exclude bo-unstable/ --exclude bo-updates/ \
         --exclude /Debian-1.3* --exclude Incoming/ --exclude local/ \
         --exclude source/ "

TO=/mnt/mirror1/debian
RSYNC_HOST=sapi.vlsm.org
RSYNC_DIR=debian/
#EXCLUDE=
LOGS=/var/log

LOCK="${TO}/Archive-Update-in-Progress-`hostname -f`"

# Get in the right directory and set the umask to be group writable
# 
cd $HOME
umask 002

# Check directory where the mirror lay
[ -d "$TO/project/trace" ] || mkdir -p "$TO/project/trace"

# Check to see if another sync is in progress
if lockfile -! -l 43200 -r 0 "$LOCK"; then
  echo `hostname` is unable to start rsync, lock file exists
  exit 1
fi
trap "rm -f $LOCK > /dev/null 2>&1" exit

set +e
rsync -rltvz --delete \
     --exclude "Archive-Update-in-Progress-`hostname -f`" \
     --exclude "project/trace/`hostname -f`" \
$EXCLUDE \
     $RSYNC_HOST::$RSYNC_DIR $TO > $LOGS/rsync-debian.log 2>&1
date -u > "${TO}/project/trace/`hostname -f`"
savelog $LOGS/rsync-debian.log > /dev/null 2>&1



On Thu, 14 Feb 2002 09:16:18 +0700
"Hadi Hermawan" <[EMAIL PROTECTED]> wrote:

> Ada yg udah berpengalaman mensyncronkan jam dua komputer atau lebih, serta 
>mensycronkan directory /home dari dua komputer atau lebih ?
> 

---------------------------------------------------------------------
Number of subscribers (updated daily): 213
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Kirim email ke