Create a site export. For server, data is put into a file in the Jira home/export directory. For Cloud, data is avaiable from backup manager screen or the file can optionally be copied to a local file if the file parameter is specified and permissions allow. Also for Cloud only, use the exportAttachments parameter to request the export contain attachments and similar data. Also for Cloud only, use --options backupForServer to create a backup suitable for import to a Server instance.