WAYS TO DO FTP MIRRORING...
wget -nv -U "berylium-wget" --cut-dirs=1 -l 1 -r  -R "*\?*" -k -np http://progmin/berylium/
cp -rpv progmin/* /home/progmin/http/cache/

TRY THIS:
wget -nv -U -nH "berylium-wget" --cut-dirs=1 -l 1 -r  \
    --output-document=- -R "*\?*" -k -np http://

will create directory hierarchy in ./ -- be sure to cd to somewhere first!
can then ftp resulting directorys to somewhere-- or just prime directory and subdirs!



BETTER YET, PASS A LIST OF ALL PAGES AND IMAGES ON SITE...
text file, one per line
while folders {
	folder/index.html
	while documents {
		folder/document.html
		}
	while images {
		folder/image.html
		folder/image.format
		}
	while folders {
		recurse --> folder/folder
		}
	}

THIS SAME LIST COULD BE RENDERED INTO XML FOR EXPORT

ALTERNATIVELY, EVERY OBJECT (when published publically) COULD BE RENDERED TO SITE, AND THEN DELETED WHEN UNPUBLISHED.
LEAVING ONLY THE INDEXES TO BE RENDERED BEFORE MIRRORING.

-------
RELATED
-------

/doc2s is renamed /docs --- what happens to other folders and objects within?

SELECT id,name FROM folder WHERE name LIKE "/doc2s/%";
for each folder:
	replace /doc2s with /docs 
	UPDATE the folder
	SELECT id,name,path,uri FROM image WHERE folderid=result->id
	for each image:
		replace /doc2s with /docs in both path and uri
		UPDATE image
		}
	}

