Ingests one or more objects into a Fedora repository.

Usage:

Ingesting one file:

fedora-ingest f[ile]
              [path]
              [format]
              [targetHost:targetPort]
              [targetUser]
              [targetPassword]
              [targetProtocol]
              [log]
              [context]

Ingesting from a directory:

fedora-ingest d[ir]
              [path]
              [format]
              [targetHost:targetPort]
              [targetUser]
              [targetPassword]
              [targetProtocol]
              [log]
              [context]

Ingesting from another repository:

fedora-ingest r[epos]
              [sourceHost:sourcePort]
              [sourceUser]
              [sourcePassword]
              [pid | *]
              [targetHost:targetPort]
              [targetUser]
              [targetPassword]
              [sourceProtocol]
              [targetProtocol]
              [log]
              [context]

Where:

Examples:

Examples:

Ingest obj1.xml (encoded in foxml1.1 format) from the current directory into the repository at myrepo.com:80 as user 'jane' with password 'jpw'. The log message will be system-generated, indicating the source path+filename.

fedora-ingest f obj1.xml info:fedora/fedora-system:FOXML-1.1 myrepo.com:80 jane jpw http

Traverse the entire directory structure of c:\archive, and ingests any file. It assumes all files will be in the FOXML 1.1 format and will fail on ingests of files that are not of this format. All log messages will be the quoted string.

fedora-ingest d c:\archive info:fedora/fedora-system:FOXML-1.1 myrepo.com:80 jane janepw http ""

Ingest the object whose pid is 'demo:1' from the source repository 'srcrepo.com:8081' into the target repository 'myrepo.com:80'. The object will be exported from the source repository in the default export format configured at the source. All log messages will be empty.

fedora-ingest r jrepo.com:8081 mike mpw demo:1 myrepo.com:80 jane jpw http http ""

Same as above, but ingests all data objects (type O).

fedora-ingest r jrepo.com:8081 mike mpw O myrepo.com:80 jane jpw http http ""