MLCP certainly can load multiple files with one command, but it can be tricky to get the syntax right for the correct file paths/names on the filesystem and correct URLs in the MarkLogic database. By default, MLCP will load files with URLs corresponding to the filesystem path and name they are loaded from. Usually that's not what you want.
Supposing you have a bunch of files to load in a filesystem directory called "Load", below your current working directory. You want to load them to a MarkLogic database under a URL directory "/a/b/". Then you would issue a command like mlcp import -host myhostname.com -port NNNN -input_file_path ./Load -output_uri_prefix /a/b/ -output_uri_replace ".*/,''" which says to take input files from ./Load, load them with output URI starting "/a/b/", and strip everything from the filename through the final '/'. DS On Thu, 18 Sep 2014, Karl Erisman wrote: > I'd like to use mlcp to load a set of files in a single transaction. Can > this be done with mlcp? > > -- > Karl Erisman > Avalon Consulting, LLC <http://www.avalonconsult.com/> > P: 615 378 8669 | M: 615 305 8814 > LinkedIn <http://www.linkedin.com/company/avalon-consulting-llc> | Google+ > <http://www.google.com/+AvalonConsultingLLC> | Twitter > <https://twitter.com/avalonconsult> > > ------------------------------------------------------------------------------------------------------------- > This message (including any attachments) contains confidential information > intended for a specific individual and purpose, and is protected by law. If > you are not the intended recipient, you should delete this message. Any > disclosure, copying, or distribution of this message, or the taking of any > action based on it, is strictly prohibited. > -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: [email protected] Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
