Open anrichter opened 12 years ago
Hmm. It seems saving attachments as files directly to the filesystem is quite uncommon, and as you point out, can be handled very differently.
There might even be more than one folder that should be backed up.
Another consideration is that rake tasks have very poor (and ugly) parameters support from the command line.
I have two ideas for a solution:
I think 2 would be better since you could link the config file to the app in source control so that other deployments would backup/restore in the same manner.
Of, course, other suggestions are welcome! Thoughts?
I also think the second solution would be better. I looked at the gem backup and use it now for my backup and partial restore, when i need a restore.
Your gem is perfect for me to bring mysql data from a production system into a sqlite driven development system. And this works now with the fix #7 :)
The folder 'files' that is hardcoded at the moment should be configurable. All my applications use the folder 'system' for alle the files such as user pictures.
So the possibility to define the folder name, which should packed into the backup archive, would be fine :)