" quotes in field values causing issues
Out of the blue Portainer-Backup stopped being able to connect to the Portainer server and subsequently read the Cron settings correctly when they are encased in " quotes.
I haven't made any changes to the install, but as part of troubleshooting I checked the docker network settings for the container (it shares the same docker network as Portainer and Portainer Agent). Also tried changing Portainer to localhost/127.0.0.1 etc. Then the host IP instead. Still no joy.
As a last gasp I removed the quotes " from the URL. Tried it again and this time it complained about the Cron format instead. Partial success. I removed the " from the Cron schedule entry. Tried again, everything looked like it was ok but the backup failed. So remove the " quotes from the backup token and finally got a successful backup.
I don't know if this issue is local to just me, I just wanted to flag what I have experienced in case it hits wider.
Working configuration (backup token blanked). It is almost a carbon copy of your example but now with the quotes " removed.
version: '3.8'
services:
portainer-backup:
container_name: portainer-backup
image: savagesoftware/portainer-backup:latest
hostname: portainer-backup
restart: unless-stopped
command: schedule
environment:
- TZ=Europe/London
- PUID=1000
- PGID=1000
- stdin_open=true # docker run -i
- tty=true # docker run -t 0
- PORTAINER_BACKUP_URL=http://portainer:9000
- PORTAINER_BACKUP_TOKEN=ptr_=
- PORTAINER_BACKUP_PASSWORD=
- PORTAINER_BACKUP_OVERWRITE=1
- PORTAINER_BACKUP_SCHEDULE=0 0 0 * * *
- PORTAINER_BACKUP_STACKS=1
- PORTAINER_BACKUP_DRYRUN=0
- PORTAINER_BACKUP_CONCISE=1
- PORTAINER_BACKUP_DIRECTORY=/backup
- PORTAINER_BACKUP_FILENAME=portainer-backup.tar.gz
volumes:
- portainer-backup:/backup
networks:
- portainer
networks:
portainer:
external: true
volumes:
portainer-backup:
external: true
Error with URL:

Error with Cron

Backup error:

Successful backup:
