redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Automatic/Manual back-up of Options value in Admin?

Open SilverKenn opened this issue 12 years ago • 4 comments

I am thinking this for awhile,

I have created a theme (a genesis child theme indeed). and the theme contains nothing but php file only, and everything on the site is controlled by the Option Panel

One thing that worries me is the "Reset All" button on the admin section, My one week work could be gone in a second just by pressing that button if I am being careless and don't back-up the json.

I understand that the backup can be done by saving or downloading the json value from the Export/Import tab. but maybe we could extend its functionality to have an automatic back-up to be save somewhere on the theme? or like the auto-generated css file by compiler hooks but have a button that says "Back-up options now", then display the list of back-up on Export/Import tab"?.

Any advise?

SilverKenn avatar Apr 15 '14 10:04 SilverKenn

I say, go for it, if you want to code it up. Clicking the Reset All button should - before deleting anything - should alert you if you are sure you want to do that. That's the builtin failsafe.

kprovance avatar Apr 15 '14 10:04 kprovance

Yeah, there's an Alert message, but the thing is I'll be using it on my clients site, and who know what are they going to do with the Options Panel,

Some people just click anything without understanding what it does. lol

SilverKenn avatar Apr 15 '14 10:04 SilverKenn

LOL, I dealt with the average AOL user for almost 15 years. You're preaching to the ultimate choir, my friend. I can kinda see how to plan something like that out, in my head. A redux_backup folder rin the uploads folder (the only writable place that seems to consistently work). An option to set how many daily (or user initiated back-ups to retain). Then save a json copy of those files in that folder. It's not impossible. I have too much stuff on my plate and Dovy off on some other thing, so if it's on me, it'll be a while out. But I'm sure a whiz like yourself would have no problem churning it out. ;-)

kprovance avatar Apr 15 '14 10:04 kprovance

I see you your point, :)

I have already achieved the thing you mentioned, creating a folder on upload directory for my theme custom css and custom php generated file from option panel but it is done on theme functions, and I'd like this to to be achieve by redux and so every redux user have also this functionality. ;)

I'll try to play with this around on weekend and maybe I can also contribute it on redux atleast,

Thanks for the advise.

SilverKenn avatar Apr 15 '14 10:04 SilverKenn