[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to backup a running script? and how to recoverout-of-sync file?

From: Cedric Williams <CedWilli_at_tceq.state.tx.us>
Date: 2003-07-25 00:00:30 CEST

Well, that would be a little difficult - the script barfed trying to back itself up a couple days ago, and I have been trying to get it back "in sync" (as it were :) since then. So, yes, the commands that I gave you are the command line efforts trying to get it all fixed up. Part of the problem may be the $Id$ - do you have keyword expansion in your scripts?

Here's what I get when I run the script itself (which follows the transcript)

*** Begin script transcript
Starting daily backups...
d:/working/02wc/ar02file
d:/working/02wc/ar02data
A D:\Working\02WC\AR02Data\ArrayTest.ssl
A D:\Working\02WC\AR02Data\QA2002TEMP_1.sch
A D:\Working\02WC\AR02Data\QA2002TEMP_2.sch
A D:\Working\02WC\AR02Data\QA2002TEMP_DATAIMPORT.sch
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.DB
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.MB
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.PX
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.VAL
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.XG0
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.XG1
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.YG0
A D:\Working\02WC\AR02Data\QATbl2002-orig071403.YG1
A D:\Working\02WC\AR02Data\QATbl2002.DB
A D:\Working\02WC\AR02Data\QATbl2002.MB
A D:\Working\02WC\AR02Data\QATbl2002.PX
A D:\Working\02WC\AR02Data\QATbl2002.VAL
A D:\Working\02WC\AR02Data\QATbl2002.XG0
A D:\Working\02WC\AR02Data\QATbl2002.XG1
A D:\Working\02WC\AR02Data\QATbl2002.YG0
A D:\Working\02WC\AR02Data\QATbl2002.YG1
A D:\Working\02WC\AR02Data\REGION4_FY2002-2.sch
A D:\Working\02WC\AR02Data\REGION4_FY2002.sch
A D:\Working\02WC\AR02Data\tmp_fields_del703.db
d:/working/02wc/ar02image
d:/working/03wc/hacks
M D:\Working\03wc\hacks\daily.sh
d:/working/03wc/readyset-081
d:/working/03wc/dbconvertproject
d:/working/03wc/2003Forms
M D:\Working\03wc\2003Forms\FormSet-2.wpd
A D:\Working\03wc\2003Forms\FormSet-3.wpd
A D:\Working\03wc\2003Forms\FormSet-4.wpd
M D:\Working\03wc\2003Forms\Instructions-General-1.wpd
A D:\Working\03wc\2003Forms\WPMethodsTest.wpd
d:/working/jobmanagement
d:/working/lar
d:/develop/java
d:/develop/perl
d:/develop/web
Continue with the commits?
y
We're going to do it!!
Committing d:/working/02wc/ar02file
Committing d:/working/02wc/ar02data
Adding (bin) Working\02WC\AR02Data\ArrayTest.ssl
Adding Working\02WC\AR02Data\QA2002TEMP_1.sch
Adding Working\02WC\AR02Data\QA2002TEMP_2.sch
Adding Working\02WC\AR02Data\QA2002TEMP_DATAIMPORT.sch
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.DB
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.MB
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.PX
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.VAL
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.XG0
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.XG1
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.YG0
Adding (bin) Working\02WC\AR02Data\QATbl2002-orig071403.YG1
Adding (bin) Working\02WC\AR02Data\QATbl2002.DB
Adding (bin) Working\02WC\AR02Data\QATbl2002.MB
Adding (bin) Working\02WC\AR02Data\QATbl2002.PX
Adding (bin) Working\02WC\AR02Data\QATbl2002.VAL
Adding (bin) Working\02WC\AR02Data\QATbl2002.XG0
Adding (bin) Working\02WC\AR02Data\QATbl2002.XG1
Adding (bin) Working\02WC\AR02Data\QATbl2002.YG0
Adding (bin) Working\02WC\AR02Data\QATbl2002.YG1
Adding Working\02WC\AR02Data\REGION4_FY2002-2.sch
Adding Working\02WC\AR02Data\REGION4_FY2002.sch
Adding (bin) Working\02WC\AR02Data\tmp_fields_del703.db
Transmitting file data .......................
Committed revision 81.
Committing d:/working/02wc/ar02image
Committing d:/working/03wc/hacks
Sending Working\03wc\hacks\daily.sh
Transmitting file data .svn: Working copy text base is corrupt
svn: Commit failed (details follow):
svn: svn_wc_transmit_text_deltas: checksum mismatch for 'D:/Working/03wc/hacks/.
svn/text-base/daily.sh.svn-base':
   recorded checksum: 638e8f922d584cefa74af0df1e280bef
   actual checksum (hex): e568839b38acb9eb149fb332aeabf312
   actual checksum (base64): 5WiDmzisuesUn7MyrqvzEg==

Committing d:/working/03wc/readyset-081
Committing d:/working/03wc/dbconvertproject
Committing d:/working/03wc/2003Forms
Sending Working\03wc\2003Forms\FormSet-2.wpd
Adding (bin) Working\03wc\2003Forms\FormSet-3.wpd
Adding (bin) Working\03wc\2003Forms\FormSet-4.wpd
Sending Working\03wc\2003Forms\Instructions-General-1.wpd
Adding (bin) Working\03wc\2003Forms\WPMethodsTest.wpd
Transmitting file data .....
Committed revision 82.
Committing d:/working/jobmanagement
Committing d:/working/lar
Committing d:/develop/java
Committing d:/develop/perl
Committing d:/develop/web
Done with commits - dump repository?
y
Starting repository dump...

*** End script transcript

*** Begin daily.sh
#!sh.exe
# Backup script for daily backups
# Requires the unix utils (from SourceForge) to
# be installed - specifically sh.exe
#
# Created 07/21/2003 by Cedric Williams
# Last modified: $Id: daily.sh 75 2003-07-22 23:00:21Z cedwilli $
#
echo "Starting daily backups..."
for f in `cat backup_paths.txt`; do
        echo $f
        svn status $f
done
echo "Continue with the commits?"
read ans
if [ X"$ans" = Xy -o X"$ans" = XY ]; then
    echo "We're going to do it!!"
     for f in `cat backup_paths.txt`; do
              echo Committing $f
              svn ci $f -m "Daily backups"
     done
        echo "Done with commits - dump repository?"
        read ans
        if [ X"$ans" = Xy -o X"$ans" = XY ]; then
                echo "Starting repository dump..."
                svnadmin dump /svroot | gzip > c:/temp/dailyrepos.gz
        fi # done dumping repository
fi # end of commit conditional

*** End daily.sh

>>> jrepenning@collab.net 07/24/03 04:35PM >>>
At 4:01 PM -0500 7/24/03, Cedric Williams wrote:
>Howdy folks,
> I've got two questions, linked together.
>1 - Can a shell script be committed to a repository while it's being
>run? (I'm guessing no, but figured I should ask first, since this is
>what I was trying to do)

Hmmm ... I do this all the time, and I don't see any reason it should
fail--nor do I see any way some such failure could cause the
particular error you report. You run the script itself. The text
base is another file entirely, inside the .svn directory. The
message says that the _text_base_ is wrong, and your shell doesn't
even know that file is there.

You said you were trying to commit while the script is actually
running, but this looks like hand-typed commands (for example,
there's a comment "make a change", but nothing showing that actually
happening; also, I see shell prompts, like "D:\Working\03wc\hacks>",
but I've never seen a shell do that during script execution, only the
Windows command executioner). Can you provide a complete transcript
of the failure actually happening?

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org 
For additional commands, e-mail: users-help@subversion.tigris.org 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 25 00:01:33 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.