upload-s3-file

Uploads a single file to an S3 bucket This command uploads a file from your Virtualmin system to Amazon’s S3 service. The login and password for S3 must be set using the --access-key and --secret-key flags, unless defaults have been set in the Virtualmin configuration. The --bucket flag must be given to specify the bucket to store the file in, the --source flag to choose the file to upload, and the --file flag to set the destination filename. The optional --rrs flag can be used to tell S3 that the file should be stored with reduced redundancy, which is cheaper but has a lower reliability SLA.

Uploads a single file to an S3 bucket#

This command uploads a file from your Virtualmin system to Amazon’s S3 service. The login and password for S3 must be set using the --access-key and --secret-key flags, unless defaults have been set in the Virtualmin configuration.

The --bucket flag must be given to specify the bucket to store the file in, the --source flag to choose the file to upload, and the --file flag to set the destination filename. The optional --rrs flag can be used to tell S3 that the file should be stored with reduced redundancy, which is cheaper but has a lower reliability SLA.

By default, this command will perform a multi-part S3 upload only for files above 2GB in size. However, you can force multi-part mode with the --multipart flag. Amazon requires that files above 5GB in size be multi-part uploaded.

By default each S3 operation will only be tried once. However, you can use the --tries flag to have Virtualmin re-try failed operations some number of times.

Command line help#

virtualmin upload-s3-file [--access-key key]
 [--secret-key key]
 --source local-file
 --bucket name
 [--file remote-file]
 [--rrs]
 [--multipart]
 [--tries count]

Source: https://www.virtualmin.com/docs/development/api-programs/upload-s3-file/

  • virtualmin, upload, log, command line, file
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...