Backup FILES & DB

Hi. I am new in ERPNEXT. I set up the first install in virtualbox. All is running OK. ....but!

I set to automatic backup in dropbox and this is not working. I receive the following msg in the email:

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message: Traceback (innermost last): File "app/setup/doctype/backup_manager/backup_manager.py", line 34, in take_backups_dropbox did_not_upload, error_log = backup_to_dropbox() File "app/setup/doctype/backup_manager/backup_dropbox.py", line 89, in backup_to_dropbox upload_file_to_dropbox(filename, "/database", dropbox_client) File "app/setup/doctype/backup_manager/backup_dropbox.py", line 149, in upload_file_to_dropbox dropbox_client.put_file(folder + "/" + os.path.basename(filename), f, overwrite=True) File "/usr/lib/python2.6/site-packages/dropbox/client.py", line 321, in put_file return self.rest_client.PUT(url, file_obj, headers) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 264, in PUT return cls.IMPL.PUT(*n, **kw) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 210, in PUT return self.request("PUT", url, body=body, headers=headers, raw_response=raw_response) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 182, in request raise ErrorResponse(r) ErrorResponse: [401] u'Unauthorized'

Please contact your system manager for more information.


I wonder what can I do to backup/restore all the info in my ERPNEXT, in case i want to store it in a USB or some device, what files must i copy(paste) from(to) which folders.


Thanks.

Felix






Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Felix,

We do not publish Dropbox API Keys as it is forbidden by Dropbox. 
You will have to contact dropbox for API keys i.e. Dropbox Access Key and Dropbox Secret Key.

For more info, read: https://github.com/webnotes/erpnext/wiki/Setting-up-Backup-Manager

Thanks,
Anand.

On 16-Sep-2013, at 12:19 AM, "Felix J. Mosquera M." <mo...@gmail.com> wrote:

Hi. I am new in ERPNEXT. I set up the first install in virtualbox. All is running OK. ....but!

I set to automatic backup in dropbox and this is not working. I receive the following msg in the email:

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message: Traceback (innermost last): File "app/setup/doctype/backup_manager/backup_manager.py", line 34, in take_backups_dropbox did_not_upload, error_log = backup_to_dropbox() File "app/setup/doctype/backup_manager/backup_dropbox.py", line 89, in backup_to_dropbox upload_file_to_dropbox(filename, "/database", dropbox_client) File "app/setup/doctype/backup_manager/backup_dropbox.py", line 149, in upload_file_to_dropbox dropbox_client.put_file(folder + "/" + os.path.basename(filename), f, overwrite=True) File "/usr/lib/python2.6/site-packages/dropbox/client.py", line 321, in put_file return self.rest_client.PUT(url, file_obj, headers) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 264, in PUT return cls.IMPL.PUT(*n, **kw) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 210, in PUT return self.request("PUT", url, body=body, headers=headers, raw_response=raw_response) File "/usr/lib/python2.6/site-packages/dropbox/rest.py", line 182, in request raise ErrorResponse(r) ErrorResponse: [401] u'Unauthorized'

Please contact your system manager for more information.


I wonder what can I do to backup/restore all the info in my ERPNEXT, in case i want to store it in a USB or some device, what files must i copy(paste) from(to) which folders.


Thanks.

Felix







Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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

Hi Anand

I put the keys in the conf.py files as is in the help but i still receive the message that i attached.

I can access dropbox from the erp interface but there is some issue uploading according to the record.

Do you have some suggestion for.me to do?

Regards

El 16/09/2013 07:20, "Anand Doshi" <an...@iwebnotes.com> escribió:



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Felix,

Now "Clear Cache & Refresh".
Go to Setup > Manage 3rd Party Backups and click on "Allow Dropbox Access".

For more info, read http://erpnext.org/docs.user.setup.third_party_backups.html


On Tue, Sep 17, 2013 at 2:47 PM, Felix J. Mosquera M. <mo...@gmail.com> wrote:

Hi Anand

I put the keys in the conf.py files as is in the help but i still receive the message that i attached.

I can access dropbox from the erp interface but there is some issue uploading according to the record.

Do you have some suggestion for.me to do?

Regards

El 16/09/2013 07:20, "Anand Doshi" <an...@iwebnotes.com> escribió:



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    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.

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




--
Regards,
Akhilesh Darjee



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

    For more options, visit https://groups.google.com/groups/opt_out.
Hi Akhilesh.
something must be worng. Day after day i receive the same message. Upload failed.

How can i do a manual back up? maybe in some usb drive. What files/directories must i copy to mantain all the data? what is the procedure to restore this from the usb?


regards.
felix


2013/9/17 Akhilesh Darjee <ak...@erpnext.com>
Hi Felix,

Now "Clear Cache & Refresh".
Go to Setup > Manage 3rd Party Backups and click on "Allow Dropbox Access".



On Tue, Sep 17, 2013 at 2:47 PM, Felix J. Mosquera M. <mo...@gmail.com> wrote:

Hi Anand

I put the keys in the conf.py files as is in the help but i still receive the message that i attached.

I can access dropbox from the erp interface but there is some issue uploading according to the record.

Do you have some suggestion for.me to do?

Regards

El 16/09/2013 07:20, "Anand Doshi" <an...@iwebnotes.com> escribió:



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    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.

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




--
Regards,
Akhilesh Darjee



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



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

    To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/UiXBC3UjLvw/unsubscribe.

To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+un…@googlegroups.com.

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




Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

    For more options, visit https://groups.google.com/groups/opt_out.
You need to backup you db (use mysqldump for a snapshot) and the public/files folder that has all the uploaded files.

- Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 18-Sep-2013, at 12:03 AM, "Felix J. Mosquera M." <mo...@gmail.com> wrote:

Hi Akhilesh.
something must be worng. Day after day i receive the same message. Upload failed.

How can i do a manual back up? maybe in some usb drive. What files/directories must i copy to mantain all the data? what is the procedure to restore this from the usb?


regards.
felix


2013/9/17 Akhilesh Darjee <ak...@erpnext.com>
Hi Felix,

Now "Clear Cache & Refresh".
Go to Setup > Manage 3rd Party Backups and click on "Allow Dropbox Access".



On Tue, Sep 17, 2013 at 2:47 PM, Felix J. Mosquera M. <mo...@gmail.com> wrote:

Hi Anand

I put the keys in the conf.py files as is in the help but i still receive the message that i attached.

I can access dropbox from the erp interface but there is some issue uploading according to the record.

Do you have some suggestion for.me to do?

Regards

El 16/09/2013 07:20, "Anand Doshi" <an...@iwebnotes.com> escribió:



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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




--
Regards,
Akhilesh Darjee



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



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

    To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-developer-forum/UiXBC3UjLvw/unsubscribe.

To unsubscribe from this group and all its topics, send an email to erpnext-developer-forum+un…@googlegroups.com.

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





Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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