Database backup-restore

64 views
Skip to first unread message

Omkar Ghatpande

unread,
Sep 25, 2014, 2:11:08 PM9/25/14
to erpnext-developer-forum
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

Rushabh Mehta

unread,
Sep 26, 2014, 1:53:00 AM9/26/14
to erpnext-dev...@googlegroups.com
On 25-Sep-2014, at 11:40 pm, Omkar Ghatpande <omkar.g...@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...@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.

Omkar Ghatpande

unread,
Sep 26, 2014, 2:02:26 AM9/26/14
to erpnext-developer-forum

Thanks Rushabh.

Sent from a Mobile Device

On 26-Sep-2014 11:22 am, "Rushabh Mehta" <rme...@gmail.com> wrote:
>
>
>
> On 25-Sep-2014, at 11:40 pm, Omkar Ghatpande <omkar.g...@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...@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...@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.

Reply all
Reply to author
Forward
0 new messages