Try ERPNext Buy Support Partners Foundation Foundation Members

Database backup-restore

Hi Guys,

I have a .sql backup of my database (V4) which I'm trying to restore on another machine.

I'm using -
../env/bin/frappe --restore db_file_name db_name site_name

I'm getting an error that the database name already exists.

Any suggestions/pointers?

Thanks

Omkar


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2BvdA54_780D2Pf4Awx%3D-Z%3DB9ktuv1zex%3Dvvrp%3DPSf%3DSw%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.


On 25-Sep-2014, at 11:40 pm, Omkar Ghatpande <om...@gmail.com> wrote:

Hi Guys,

I have a .sql backup of my database (V4) which I'm trying to restore on another machine.

I'm using - 
../env/bin/frappe --restore db_file_name db_name site_name

I'm getting an error that the database name already exists.

Try adding -f at the end.

or install it in a new site.


Any suggestions/pointers?

Thanks

Omkar


  1. Please be kind and don’t send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–%2BvdA54_780D2Pf4Awx%3D-Z%3DB9ktuv1zex%3Dvvrp%3DPSf%3DSw%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/00F689B2-13DE-41F3-8D5D-25573223068A%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.

Thanks Rushabh.

Sent from a Mobile Device

On 26-Sep-2014 11:22 am, "Rushabh Mehta" <rm...@gmail.com> wrote:
>
>
>
> On 25-Sep-2014, at 11:40 pm, Omkar Ghatpande <om...@gmail.com> wrote:
>
>> Hi Guys,
>>
>> I have a .sql backup of my database (V4) which I'm trying to restore on another machine.
>>
>> I'm using -
>> ../env/bin/frappe --restore db_file_name db_name site_name
>>
>> I'm getting an error that the database name already exists.
>
>
> Try adding -f at the end.

Okay, will try that.

>
> or install it in a new site.

How should I do this? As I add a new site, database is automatically created.

>
>>
>> Any suggestions/pointers?
>>
>> Thanks
>>
>> Omkar
>>
>> --
>> 1. Please be kind and don't send large attachments
>> 2. For issues, features requests usehttps://github.com/frappe/erpnext/issues
>> ---
>> You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email toerpnext-developer-forum+un...@googlegroups.com.
>> To view this discussion on the web visithttps://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj--%2BvdA54_780D2Pf4Awx%3D-Z%3DB9ktuv1zex%3Dvvrp%3DPSf%3DSw%40mail.gmail.com.
>> For more options, visithttps://groups.google.com/d/optout.
>
>
> --
> 1. Please be kind and don't send large attachments
> 2. For issues, features requests usehttps://github.com/frappe/erpnext/issues
> ---
> You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email toerpnext-developer-forum+un...@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/erpnext-developer-forum/00F689B2-13DE-41F3-8D5D-25573223068A%40gmail.com.
> For more options, visithttps://groups.google.com/d/optout.


  1. Please be kind and don't send large attachments
  2. For issues, features requests use https://github.com/frappe/erpnext/issues



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAOnj–KCEAWLPj6M48vGsTdRoX7cwBekrQE8%3DZzctgOC8kFZ1Q%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.