diff options
author | Gavin Romig-Koch <gavin@localhost.localdomain> | 2009-08-20 12:18:33 -0400 |
---|---|---|
committer | Gavin Romig-Koch <gavin@localhost.localdomain> | 2009-08-20 12:18:33 -0400 |
commit | 71842a8b96792ee7478b817927e6b1b1ee3e223c (patch) | |
tree | 60fd149614522a79f8efbc817a0763f0cc7e693c /fastback-check | |
parent | c238b074feb5cc0fcd7bcac331036b09aa80a7a1 (diff) | |
download | fastback-71842a8b96792ee7478b817927e6b1b1ee3e223c.tar.gz fastback-71842a8b96792ee7478b817927e6b1b1ee3e223c.tar.xz fastback-71842a8b96792ee7478b817927e6b1b1ee3e223c.zip |
changes needed to push it public
Diffstat (limited to 'fastback-check')
-rwxr-xr-x | fastback-check | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/fastback-check b/fastback-check index 4e8b549..ca3c56f 100755 --- a/fastback-check +++ b/fastback-check @@ -1,5 +1,26 @@ #!/bin/bash +# +# This file can be used to check that fastback and fastback-unload-receipt +# are working IF you can write a script that fetches the file back from +# the remote ftp server: see ./fetch-from-remote +# +# You must rewrite fetch-from-remote for this to work correctly +# +# + +# ./fastback-check FILE [encrypt] [TICKET] +# +# where +# FILE is the name of the file to test with +# TICKET is the name of the ticket or the string "new" to +# indicate that you what to specify "-n" to fastback +# if specified as the second argument "encrypt" will cause -e to be +# passed to fastback +# the second and third arguments are optional +# + + ORIG=$1 if [ ! -e $ORIG ]; then @@ -48,7 +69,7 @@ cat $RECEIPT | while read FIRST REST ; do exit 2 fi - ./fetch-from-indus $FILE + ./fetch-from-remote $FILE fastback-unload-receipt $RECEIPT |