Log files removed via Domains > example.com > File Manager > Logs are back after one day.
How to exclude them from the backup?
The recovery of logs after their removal from the
/var/www/vhosts/example.com/logs/ directory is the expected behavior.
This is because these files are hard links for files located in the
Recovering files in the directory
/var/www/vhosts/example.com/logs/ occurs when the daily task is used to recalculate statistics and log rotation.
Deleting logs in both the
/var/www/vhosts/example.com/logs/ directory will result in a corruption/lack of domain statistics. There also be issues with the operation of the web server.
The optimal solution for excluding logs from the backup is updating Plesk to version 17.0 or 17.5, where this functionality is implemented in the Backup Manager: