i think you would
snap install aws-cli --classic
aws configure
cd /var/discourse
.\launcher enter app
rails c
Discourse.enable_readonly_mode(Discourse::USER_READONLY_MODE_KEY)
exit
discourse backup
docker cp “app:/var/www/discourse/public/backups/default/your-site-2006-01-02-150405-v20200101150405.tar.gz “ “root@[server_ip_address]:/var/discourse/shared/standalone/backups/default/your-site-2006-01-02-150405-v20200101150405.tar.gz“
this step might be Unnecessary anyway, because /shared is bind-mounted to the host already ??
exit
aws s3 cp “/var/discourse/shared/standalone/backups/default/your-site-2006-01-02-150405-v20200101150405.tar.gz“ “myBucket://your-site-2006-01-02-150405-v20200101150405.tar.gz“
please note i haven’t tested these commands at all