sebastianfeldmann / phpbu

PHP Backup Utility - Creates and encrypts database and file backups, syncs your backups to other servers or cloud services and assists you monitor your backup process
https://phpbu.de
Other
1.29k stars 110 forks source link

Relative paths don't work for template? #364

Open YouveGotMeowxy opened 7 months ago

YouveGotMeowxy commented 7 months ago

Am I makin ya nuts yet, @sebastianfeldmann ? LOL :)

Not super important, but wondering why this happens? If I use the full server path to the template file, PHPBU finds the template file w/out complaint; but if I use the relative path it complains that it can't find it?

However, I use the exact same relative path for the .log file, and BU has no problem finding it. Both the template file and the .log file are in the same folder as the BU script.

I can use the full path to point to the template, but for the sake of less clutter, and readability I like to use relative paths sometimes.

image

sebastianfeldmann commented 7 months ago

Normally the path should be relative to the configuration file.

There is currently a bug. For the webhook template it is not working as expected :/

sebastianfeldmann commented 7 months ago

Will be fixed in the upcoming version