WWW = /projects/ltg/www/delphin/wikiwoods

.PHONY: 1004 1010 1111 1212

1212:
	@( \
	  cd $${LOGONROOT}; \
	  date=$$(date "+[%H:%M:%S]"); \
	  echo -n "$${date} archiving cooked article files ..."; \
	  tar pScf ${WWW}/1212/txt.tar ./uio/wikiwoods/1010/txt; \
	  echo " done."; \
	  for i in 0 1 2 3 4 5 6 7 8 9; do \
	    date=$$(date "+[%H:%M:%S]"); \
	    echo -n "$${date} archiving profiles for segment #$${i} ..."; \
	    tar pScf ${WWW}/1212/itsdb$${i}.tar \
	      ./uio/wikiwoods/1212/tsdb/????$${i}; \
	    echo " done."; \
	  done; \
	)

1111:
	@( \
	  cd $${LOGONROOT}; \
	  date=$$(date "+[%H:%M:%S]"); \
	  echo -n "$${date} archiving cooked article files ..."; \
	  tar pScf ${WWW}/1111/txt.tar ./uio/wikiwoods/1010/txt; \
	  echo " done."; \
	  for i in 0 1 2 3 4 5 6 7 8 9; do \
	    date=$$(date "+[%H:%M:%S]"); \
	    echo -n "$${date} archiving profiles for segment #$${i} ..."; \
	    tar pScf ${WWW}/1111/itsdb$${i}.tar \
	      ./uio/wikiwoods/1111/tsdb/????$${i}; \
	    echo " done."; \
	    date=$$(date "+[%H:%M:%S]"); \
	    echo -n "$${date} archiving export files for segment #$${i} ..."; \
	    tar pScf ${WWW}/1111/export$${i}.tar \
	      ./uio/wikiwoods/1111/export/????$${i}.gz; \
	    echo " done."; \
	  done; \
	)

1010:
	@( \
	  cd $${LOGONROOT}; \
	  echo -n "archiving cooked article files ..."; \
	  tar pScf ${WWW}/1010/txt.tar ./uio/wikiwoods/1010/txt; \
	  echo " done."; \
	  for i in 0 1 2 3 4 5 6 7 8 9; do \
	    echo -n "archiving tsdb(1) profiles for segment #$${i} ..."; \
	    tar pScf ${WWW}/1010/itsdb$${i}.tar \
	      ./uio/wikiwoods/1010/tsdb/????$${i}; \
	    echo " done."; \
	    echo -n "archiving export files for segment #$${i} ..."; \
	    tar pScf ${WWW}/1010/export$${i}.tar \
	      ./uio/wikiwoods/1010/export/????$${i}.gz; \
	    echo " done."; \
	  done; \
	)

1004:
	@( \
	  cd $${LOGONROOT}; \
	  echo -n "archiving raw article files ..."; \
	  tar pScf ${WWW}/1004/raw.tar ./uio/wikiwoods/1004/raw; \
	  echo " done."; \
	  echo -n "archiving cooked article files ..."; \
	  tar pScf ${WWW}/1004/txt.tar ./uio/wikiwoods/1004/txt; \
	  echo " done."; \
	  for i in 0 1 2 3 4 5 6 7 8 9; do \
	    echo -n "archiving tsdb(1) profiles for segment #$${i} ..."; \
	    tar pScf ${WWW}/1004/itsdb$${i}.tar \
	      ./uio/wikiwoods/1004/tsdb/????$${i}; \
	    echo " done."; \
	    echo -n "archiving export files for segment #$${i} ..."; \
	    tar pScf ${WWW}/1004/export$${i}.tar \
	      ./uio/wikiwoods/1004/export/????$${i}.gz; \
	    echo " done."; \
	  done; \
	)