| UPLOAD(1) | General Commands Manual | UPLOAD(1) |
sos_upload - Upload files like previously generated sos reports or logs to a policy specific location
sos upload FILE [options]
[--case-id id]
[--upload-url url]
[--upload-user user]
[--upload-pass pass]
[--upload-directory dir]
[--upload-method]
[--upload-no-ssl-verify]
[--upload-protocol protocol]
[--upload-target target]
[--upload-s3-endpoint endpoint]
[--upload-s3-region region]
[--upload-s3-bucket bucket]
[--upload-s3-access-key key]
[--upload-s3-secret-key key]
[--upload-s3-object-prefix prefix]
upload is an sos subcommand to upload sos reports, logs, vmcores, or other files to a policy defined remote location, or a user defined one.
FILE
An upload protocol MUST be specified in this URL. Currently uploading is supported for HTTPS, SFTP, and FTP protocols.
If your destination server listens on a non-standard port, specify the listening port in the URL.
If --batch is used and this option is omitted, no username will be collected and thus uploads will fail if no vendor default is set.
You also have the option of providing this value via the SOSUPLOADUSER environment variable. If this variable is set, then no username prompt will occur and --batch may be used provided all other required values (case number, upload password) are provided.
If this option is omitted and upload is requested, you will be prompted for one.
If --batch is used, this prompt will not occur, so any uploads are likely to fail unless this option is used.
Note that this will result in the plaintext string appearing in `ps` output that may be collected by sos and be in the archive. If a password must be provided by you for uploading, it is strongly recommended to not use --batch and enter the password when prompted rather than using this option.
You also have the option of providing this value via the SOSUPLOADPASSWORD environment variable. If this variable is set, then no password prompt will occur and --batch may be used provided all other required values (case number, upload user) are provided.
This option has no effect on upload protocols other than HTTPS.
Default behavior is to perform SSL verification against all upload locations.
Normally this is determined via the upload address, assuming that the protocol is part of the address provided, e.g. 'https://example.com'. By using this option, sos will skip the protocol check and use the method defined for the specified PROTO.
For RHEL systems, setting this option to sftp will skip the initial attempt to upload to the Red Hat Customer Portal, and only attempt an upload to Red Hat's SFTP server, which is typically used as a fallback target.
Valid values for PROTO are: 'auto' (default), 'https', 'ftp', 'sftp', 's3'.
sos(1) sos-report(1) sos-clean(1) sos.conf(5) sos-collect(1)
Maintained on GitHub at https://github.com/sosreport/sos
See AUTHORS file in the package documentation.
| December 2024 |