Use APP_NAME everywhere
Use APP_NAME everywhere, and handle ssl connection in backup script.
Parametrize CLI