grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

Scheduled backups: path exclusion doesn't work

Open atanczos opened this issue 4 weeks ago • 1 comments

When I add a new directory to the backup exclusion list, scheduled backups ignore it and back up the directory anyway. However, manual backups do take it into account.

atanczos avatar Dec 03 '25 06:12 atanczos

@atanczos do you have any environmental based configuration folders? ie is it possible that your admin is saving the backup exclusion list to a folder other than the default (user/config/...) based configuration? If so the scheduled command would need to have an --env flag to ensure that it uses the same environment as your admin. Can you confirm if this is the case?

If not then it's another issue that is meaning the CLI is not getting the same configuration as the Admin.

rhukster avatar Dec 03 '25 17:12 rhukster

The config file is in user/[sitename]/config directory. I have created a symlink to it in the user/config directory and now it's OK.

atanczos avatar Dec 12 '25 11:12 atanczos

Yes environments can get tricky in CLI where it has no idea what environment you need. You can also pass --ENV [sitename] to the CLI command, and I've added an option to select the environment for backups in the admin (in the 1.11 beta)

rhukster avatar Dec 12 '25 16:12 rhukster