Architecture
Why not reuse an existing tool?
Zerka30/servarr-backup does this for Radarr/Sonarr/Prowlarr to S3. Backuparr covers more apps and sends backups through rclone to Local storage, Google Drive (connected in the UI), and OneDrive or Dropbox (a one-time rclone authorize paste) - no rclone config wizard needed.