% TRANSFER(1) Version 3.2.2 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2025 Standby.cloud NAME ==== **transfer** - (BASH Script) Get a resource from a host (or internet) via curl and check if an error occured. SYNOPSIS ======== | **transfer** \[_options_] _url_ DESCRIPTION =========== Get a resource from a host (or internet) via curl and check if an error occured. Options ------- -h, \--help          : Displays helptext. -v, \--version          : Displays the version of the script. -q, \--quiet          : Don't display any error messages. -a, \--auth          : Using Oracle Authorization Header e.g. -H "Authorization: Bearer Oracle". -s, \--seconds _number_          : Max _number_ of seconds for the operation to take (default is 10). -e, \--export _filename_         : Write output to file "_filename_". URL ------- URL can be specified with or without leading "http://". EXAMPLES ======== **transfer** http://standby.cloud/download/pdf/Basic-Admin-Scripts.pdf \--export manual.pdf : Downloads manual.pdf from server. **transfer** \--auth http://169.254.169.254/opc/v2/instance : Downloads oci instance metadata for current VM. EXIT CODES ========== 01: Unknown or wrong parameter. 02: **curl** not found. This script needs **curl** to perform. 03: Application error. 04: HTML error. 05: JSON error or ObjectNotFound 06: No internet connection or URL not found. 07: Error while creating output file. 99: User interrupt. SEE ALSO ======== **install-scripts**(1)