backup functionality. starting ideas

61 views
Skip to first unread message

José de Zárate

unread,
Mar 11, 2011, 10:14:18 AM3/11/11
to siwap...@googlegroups.com
hey I was about to start implementing the backup functionality, and thought that I could use some starting ideas of what we want it to be and how.

For a starter, I think we shouldn't use any of the symfony usual interface for dealing with database (doctrine tasks and the like). Everything should be web-centric.

 - The user should be able to generate a backup and recover data from it at any time.

      - Shall we do an "overwrite all" style backup? I mean, is the restore process meant to wipe off the actual database to restore the data contained in the backup, or it will keep the data that may already be in the database at the time of restoration?? If the latter is true, we should then find a way which records are the same in the database and the backup so we don't duplicate them.
      - Here's another crazy idea: we can give the user the choice of deciding what to do with the records that exists both in the database and in the backup file:
                         - the backup record overwrites the database one
                         - the database record prevails
        we can use the "id" field to determine if a record exists in both the database and the restoration file, or we could create a kind of a hash signature for every db signature that never changes once it's created and would allow us to uniquely determine one record in such cases.

- What with the format?? 

   - Enrique, I see in the ticket description that you say 
            "maybe we can export to a json format (probably useful for future releases, as a way of upgrade)"
    why is that? and how exactly? I'm thinking now a json file that looks alike the json format fixture files used in django projects , is that what you have in mind?



Enrique Martinez

unread,
Mar 11, 2011, 12:34:20 PM3/11/11
to siwap...@googlegroups.com
yes, something like that. The thing is that most probably, the
following versions of siwapp will be running with mongodb instead of
mysql. If we can export the data to a json format will be great to the
people to upgrade from older versions.
Indeed the main reason of doing a "backup" is this, because most of
the people can do their own backups with mysql without problems.
But maybe we should wait to see what and how is gonna be this mongodb
format. So, I think we should start to work before on the mongodb
format, and afterwards knowing the best format work on the backup.

2011/3/11 José de Zárate <jza...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "siwapp-dev" group.
> To post to this group, send email to siwap...@googlegroups.com.
> To unsubscribe from this group, send email to
> siwapp-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/siwapp-dev?hl=en.
>

José de Zárate

unread,
Mar 11, 2011, 12:47:25 PM3/11/11
to siwap...@googlegroups.com
well, then remove the 0.4 milestone of the ticket.

Enrique Martinez

unread,
Mar 11, 2011, 1:19:39 PM3/11/11
to siwap...@googlegroups.com
you're right. Done.
Reply all
Reply to author
Forward
0 new messages