-test -e $dir/$from.archive.xml || $bin/export $from archive XMLFiles > $dir/$from.archive.xml
-#test -e $dir/$from.no-files.xml || $bin/export $from archive XML > $dir/$from.no-files.xml
+# select just one export
+if [ ! -e $dir/$from.archive.xml ] ; then
+ # wd don't want files embedded in XML
+ #$bin/export $from archive XMLFiles > $dir/$from.archive.xml
+ $bin/export $from archive XML > $dir/$from.archive.xml
+)
+test -e $dir/$from.archive.xml ||
+