Class Upload


  • public class Upload
    extends java.lang.Object
    A tool to force upload of given arc or warc files into the ArcRepository found in settings.xml. All successfully uploaded files are deleted locally.

    Usage: java dk.netarkivet.archive.tools.Upload file1 [file2 ...]

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] argv)
      Main method, uploads given arc files to the ArcRepository.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] argv)
        Main method, uploads given arc files to the ArcRepository. If some file does not exist or is not an arc file, the methods prints out an error and calls System.exit(). Successfully uploaded files are deleted locally. If some arc file cannot be uploaded, the method continues to upload the rest of the files and does not delete that file.
        Parameters:
        argv - A list of absolute paths to the arc files that should be uploaded.