LoRS Instructions - Uploading/Downloading Files

From ReddNet
Jump to navigation Jump to search
  1. Setting Up LoRS
  2. Uploading/Downloading Files
  3. Other Commands

Uploading Files

  • Enter the "lors-0.82.1" directory and the "local" subdirectory (the LoRS commands are also in the local/bin subdirectory):
 $ cd ~/lstore/lors-0.82.1/local
  • To upload to a depot (dansdepot in these examples), copy it to this directory from an existing location (ask someone!). This allows LoRS to access the depot you want to upload into.
  • The basic command to upload a file is:
 $ ./lors_upload <filename>
  • We will use the following options: (see ./lors_upload --help for all the options available)
    • --xndrc dansdepot (specifies the depotlist for this upload)
    • --depot-list (uses only depots in the ~/.xndrc file)
    • -n OR --none (turns off end2end services)
    • -d 10d OR --duration=10d (specifies storage time in sec (s), min (m), hrs (h), or days (d))
    • -f OR --samename (creates the exNode file by appending .xnd to the original filename)
  • Putting these together, upload using this command:
 $ ./lors_upload --xndrc dansdepot --depot-list -n -d 10d -f filename
  • Again, other options are explained in:
 $ ./lors_upload --help
  • Error lists are available in the local/doc/lors directory. I used:
 $ cd ~/lstore/lors-0.82.1/local/doc/lors
 $ emacs lors__error_8h.html
  • In the HTML tab of the emacs window I selected View Buffer Contents, which opens the file in HTML format

Downloading Files

  • To download a file from the depot, re-enter the ~/.../lors-0.82.1/local/bin subdirectory and use the basic command:
 $ ./lors_download <filename.xnd>
  • As with the upload tool, options are available using:
 $ ./lors_download --help
  • The -o option allows you to download to a specific file:
 $ ./lors_download -o yesitcan.txt canitdothis.xnd
  • This command will download the contents of canitdothis to a file named yesitcan.txt. You can also download to a file in a different directory by specifying the file's path after the -o option.
  • If you see this error, make sure you use <filename>.xnd in the command line:
 lstat(directorychange) error:No such file or directory
 deserialize failed! : directorychange