In symfony, we can take backup of our database with the help symfony commands i.e.
>> To Take dump of your DB
# symfony propel-dump-data application-name file.yml
EX:
# symfony propel-dump-data frontend dump.yml
it will create dump.yml file in data/fixtures/dump.yml.
>> To Reuse of your dump data into your DB
# symfony propel:data-load application-name
EX:
# symfony propel:data-load frontend
It will re-create your db structure......
No comments :
Post a Comment