pivasoftware / easycwmp

EasyCwmp:
http://www.easycwmp.org/
GNU General Public License v2.0
73 stars 59 forks source link

Move BACKUP_DIR to /tmp #28

Open okraits opened 7 years ago

okraits commented 7 years ago

BACKUP_DIR doesn't contain configuration files but runtime data and thus should live in /tmp.

pivasoftware commented 7 years ago

I can not change the backup dir to /tmp. Since I want to keep backup file after the router reboot. And saving the backup in tmp will cause the loose of the backup file after the reboot

feckert commented 7 years ago

@pivasoftware Maybe it is possible to make it configurable? The Problem is that if "easycwmp" is running on a device with NAND-flash that on every write to the backup directory a whole erase block of the NAND must be rewritten. I dont know exactly but the backup.xml is written on every INFORM?

pivasoftware commented 7 years ago

@feckert Yes, the backup is writen in every inform. May be your idea is good. make the backup file path configurable. Could you open a ticket about that in support.easycwmp.org