HI,
##########################################
cd /backup

bkp_date=`date '+%F'`
filename2_prefix=cvs_backup_
cvs_filename=${filename2_prefix}${bkp_date}.tar
tar -cf /backup/$cvs_filename /cvs/*
############################################

I am using this script for the backup of the cvs.
Hope this will works for you also.

I have a complete script for the backup of the cvs ...which tar the cvs
repos and ftp it to the backup server.

If you need this then let me know. I wud be more than happy to help you.



Regards,
Narender..



On 10/17/05, Kapil Sethi <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> > date=`date -I`
> > mv /home/manish/cvs_bkp/cvs_bkp.tar
> /home/manish/cvs_bkp/cvs_bkp$date.tar
>
> you dont even need that in a variable. The following works.
>
> mv /home/manish/cvs_bkp/cvs_bkp.tar
> /home/manish/cvs_bkp/cvs_bkp`date -I`.tar
>
> Kapil
>
>
> _______________________________________________
> ilugd mailinglist -- ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
>
>
_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to