At 18:57 Uhr +0200 21.07.2000, Guus Leeuw wrote:
>  >  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>  >  I am running cvs-1.10.8 on a linux server(debian). Our main file
>>   server is NT. Is it possible to link the repository to our file
>   server, and just have the linux server 'run' cvs.

>What I would try to find out, is whether you can have the NT box mount
>the Repository volume once a night, and just back that up as well...
>This would give you the chance of having a single machine involved in
>the CVS Server Part.

Reminds me of what I did for a long time in a similar situation: I 
set up a nightly cron job that tared / gziped the repository and 
transferred it to the NT box via ftp (I set up warftpd on NT for that 
purpose).

        hauke

--< snip >-------------------------------------------------------------

#!/bin/sh
#
# tar(1) the local cvs(1) archives and ftp(1) them to
# NT box foo
#
#
# $Id: cvs-backup.sh,v 1.13 1999/09/15 07:19:16 hf Exp $

umask 077

PATH=/bin:/usr/bin
export PATH

# Name the directories to backup
# Backup is done from / to avoid leading slashes
#
SAPHIR_ROOT=local/saphir/cvsroot
MELOG_ROOT=local/melog/cvsroot

ROOT_DIRS="${SAPHIR_ROOT} ${MELOG_ROOT}"

TEMP_DIR=/local/tmp/backup--cvs

CVS_BACKUP="cvsroot-backup-"`date "+%y%m%d.%Hh%M"`.tar.gz
CVS_R_BACKUP="cvsroot-backups.tar.gz"

FTPLOG="/var/log/cvsbackup.ftplog"


# Remove old tempdir if present and make a new one
#
rm -rf ${TEMP_DIR} 2>&1 > /dev/null
mkdir ${TEMP_DIR}


# Archive cvsroot dirs to tempdir
#
cd /
tar -zcpf ${TEMP_DIR}/${CVS_BACKUP} ${ROOT_DIRS}

# Transfer archive to host "foo"
#
echo > ${FTPLOG}
date >> ${FTPLOG}

ftp -n -v >>${FTPLOG}  <<EOF
     open foo
     user cvsback secRet
     binary
     prompt
     lcd ${TEMP_DIR}
     cd cvsback
     delete ${CVS_R_BACKUP}-3
     rename ${CVS_R_BACKUP}-2 ${CVS_R_BACKUP}-3
     rename ${CVS_R_BACKUP}-1 ${CVS_R_BACKUP}-2
     rename ${CVS_R_BACKUP}   ${CVS_R_BACKUP}-1
     put ${CVS_BACKUP} ${CVS_R_BACKUP}
     quit
EOF

logger -i -p user.notice -t CVSROOT \
            "Backup of { ${ROOT_DIRS} } done."

cat ${FTPLOG} | mail -s "Daily CVS archive backup" \
                [EMAIL PROTECTED]

--< snip >-------------------------------------------------------------


-- 
Hauke Fath                        Tangro Software Components GmbH
                                         D-69115 Heidelberg
[EMAIL PROTECTED]                       Ruf +49-6221-13336-35, Fax -21

Reply via email to