Skip to content

Quick setup, with encryption

Tomas Celaya edited this page May 4, 2018 · 3 revisions
  1. Java 1.8 or newer must be installed. Please see the notice about stronger encryption if you wish to use a key size larger than 128 bits.
  2. Download the lastest release JAR.
  3. Generate a secret key file using the generate-key subcommand, providing the desired encryption strength and the path at which the key will be generated. Be sure to keep this secret key in a safe place, as losing the key means losing access to your data.
    $ java -jar manta-archiver-1.0.0.jar generate-key [128, 192, 256] <local-path>
  4. Generate a configuration file with the key strength from the previous command. This will generate a file named env.sh in the current directory.
    $ java -jar manta-archiver-1.0.0.jar generate-env [128, 192, 256]
  5. Source env.sh. This uses the generated file to configure manta-archiver. This script also performs some sanity checks and will display suggestions for fixing common errors. Don't forget to edit the file and set MANTA_PASSWORD if your key requires a passphrase!
    $ source env.sh
  6. You should now be able to run the connect-test subcommand:
    $ java -jar manta-archiver-1.0.0.jar connect-test
    ...
    Request was successful
  7. Finally, archive a folder with the upload subcommand:
    $ java -jar manta-archiver-1.0.0.jar upload .../path/to/local/directory/ ~~/stor/path/to/remote/directory/
    Maven Archiver - Upload
    
    Bulk upload to Manta : [.../path/to/local/directory/] --> [/account/stor/path/to/remote/directory/]
    Total files to upload: 3
    Total size to upload : 4 KB (4909)
    
    Uploading 100% [==========================================================] 4909/4909 (0:00:03 / 0:00:00)
    • If you encounter a Remote path does not exist error, try using the -p/--mkdirp flag as in upload -p <local> <remote>

Advanced

Clone this wiki locally