autopickup

This command is used to download (pick up) one or all of the files in a drop-off.

For the example commands, let's define a few things which you will change for your own use:

  • The automation user is going to have the username "robot" with a password of "machines"
  • The claimID and passcode of the drop-off will be "aaaClaimIDaaa" and "bbbPasscodebbb"
  • The address of your ZendTo site will be "https://your-zendto-site.com/". The site address always goes at the very end of the command, after all the other options.

Troubleshooting Options

If you are using a locally-signed SSL certificate on your ZendTo server, you may need to add the option
    --insecure
to all of the example commands. The option tells curl to skip all the validity checks on the SSL certificate on your ZendTo server.

To see the curl command it creates, which is what does all the work, but not actually run anything, add the option
    --debug
to any of the example commands. This is extremely useful if you are looking to re-implement the functionality of the script in another environment.

Examples

To see the command-line usage
/opt/zendto/bin/autopickup --help

Fetch information about the drop-off, without downloading anything
/opt/zendto/bin/autopickup --username 'robot' --password 'machines' --claimid 'aaaClaimIDaaa' --passcode 'bbbPasscodebbb' --list --nofiles https://your-zendto-site.com/

Fetch all the files in the drop-off to the current directory, verifying their checksums, and logging that they were picked up by 'user@yourdomain.com'
/opt/zendto/bin/autopickup --username 'robot' --password 'machines' --claimid 'aaaClaimIDaaa' --passcode 'bbbPasscodebbb' --checksum --pickedupby 'user@yourdomain.com' https://your-zendto-site.com/

Fetch all the files in the drop-off to the directory '/var/tmp/downloads', not bothering with checksums or logging who did it
/opt/zendto/bin/autopickup --username 'robot' --password 'machines' --claimid 'aaaClaimIDaaa' --passcode 'bbbPasscodebbb' --output '/var/tmp/downloads' https://your-zendto-site.com/

The output of the '--list --nofiles' command above will give you a unique fileid number for each of the files in the drop-off. So let's download file number 123, verify its checksum and save it to the file ~/Downloads/my-picked-up-file
/opt/zendto/bin/autopickup --username 'robot' --password 'machines' --claimid 'aaaClaimIDaaa' --passcode 'bbbPasscodebbb' --file 123 --checksum --output '~/Downloads/my-picked-up-file' https://your-zendto-site.com/