summaryrefslogtreecommitdiffstats
path: root/fastback-check
diff options
context:
space:
mode:
Diffstat (limited to 'fastback-check')
-rwxr-xr-xfastback-check23
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