Backup Files and Directories plugin crashes firewall if /root specified as backup location
The Backup Files and Directories plugin crashes firewall if
/root specified as backup location. The plugin creates its backup at
/root/backup and does not exclude the backup directory. This creates a recursive tar which fills all available storage and crashes pfSense.
Updated by Viktor Gurov 11 months ago
Updated by Steve Wheeler 11 months ago
I can't replicate this by simply attempting to backup /root.
The backup file is not included in the .tgz.
Testing Backup package version 0.5_3 in 2.4.5p1.
Updated by Marcos Mendoza 11 months ago
I was not able to reproduce the issue either:
path: /root/backup dir contents: empty result: archive with empty /root/backup dir path: /root/backup dir contents: pfsense.bak.tgz result: archive with empty /root/backup dir path: /root dir contents: default files; empty backup dir result: archive with default files and empty backup dir
When I tested "path: /", it the failed because it ran out of space (but this is not indicative of a recursive failure).
Updated by Jordan Greene 9 months ago
Attempted creating backup for '/' on XG-7100 on ZFS
PHP ERROR: Type: 1, File: /usr/local/www/packages/backup/backup.php, Line: 77, Message: Allowed memory size of 536870912 bytes exhausted (tried to allocate 552079360 bytes) @ 2021-01-09 21:35:18