Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
I am trying to use pihole -a -t
to create scheduled backup jobs. This command appears to work once and only once. After which, you get a fatal PHP error claiming that the backup file already exists, even if you delete it. I'm running this script under the /tmp
directory. I'm expecting to get a .tar.gz container with the datetime stamp in the file name.
Actual Behaviour:
Instead of a new file, I get:
PHP Fatal error: Uncaught BadMethodCallException: phar "/tmp/pi-hole-pihole-wf-inside-teleporter_2022-06-30_11-21-35.tar.gz" exists and must be unlinked prior to conversion in /var/www/html/admin/scripts/pi-hole/php/teleporter.php:634 Stack trace: #0 /var/www/html/admin/scripts/pi-hole/php/teleporter.php(634): PharData->compress() #1 {main} thrown in /var/www/html/admin/scripts/pi-hole/php/teleporter.php on line 634
This happens even if I delete the previous backup files.
Debug Token:
GtTfU2RY