Hello,
I'n using NR to provide data to a large group of users (it was > 1000 but after I lost my data I'm back about 300 now). Each user has it's own settings, stored in aUsers object, stored als file :
flow.set("aUsers", aUsers, "storeInFile");
Just to be sure, if I mess up anything, I created a change node which is injected once every day to backup my data. If necessary, I would be able to access a backed up copy of the user settings.
So far, so good, the data gets copied into aUsersBackup
But then this day came, when I accidentally deleted all user data. So I wanted to use the backup, but it was also empty???
Asked users to re-register and the number of users (and settings) is increasing again. Monitored the backup this time and I noticed that the file size is equal at any time? So I doubted the change node, killed it and created a function in stead;
var aUsers = flow.get("aUsers", "storeInFile");
flow.set("aUsersBackup", aUsers, "storeInFile");
But still the same issue. So I disabled the trigger, so this function never gets triggered anymore.
Still the backup keeps the same size. Something seems to hardcopy it realtime.
Any suggestions maybe?
I just deleted the backup file and re-enabled the trigger towards the function node. Monitoring...