Hello,
I want to restore my backed up file from VM which is located on my pc folder and now I am using erpnext on Google cloud Debian. How do I restore that file into google cloud ERPNext. I typed
$ bench restore
but I don’t kow what to type the restore file db path. Do I have to import the backup db file to ERPNext first or I can restore from the PC folder to the cloud ERPNext directly?
You could move your backup file to a Dropbox location. There are even instructions available to make ERPNext backup directly to a Dropbox.
Then use the Dropbox location as the source for the restore. I saw the instructions for that somewhere here, but I do not have the link handy. If I come across it later today I will post the link.
A search in the forum for dropbox might help. I believe the restore path would be the same as if you wanted to create an external share link from your dropbox for someone outside your network to have access. Dropbox documentation should be helpful with how to do that.
Again, I have not tried this, but others report that it works well for them. I just wanted to give you at least a direction to start your own research effort.
According to @komsel2228 in his Dec '16 reply to someone else with this issue he said the following:
do you want to restore your backup?
frappe-bench$ bench --force restore path_backupfile
In this case the “path_backup” file would probably be the same path or similar that you might share to someone outside your network if you wanted grant them access to something in your dropbox. At least that is a starting point.
If you figure it out the correct sytnax, please post back to help others that will be asking this question.
eurekaforbesdelhi@instance-1:~$ scp D:\Backup\Bench Backups\20170907_043031_8ffe419c_database frappe@http://35.187.239.97:~/frappe-bench
ssh: Could not resolve hostname d: Name or service not known
ssh: Could not resolve hostname http: Name or service not known
lost connection
eurekaforbesdelhi@instance-1:~$
eurekaforbesdelhi@instance-1:~$ scp D:\Backup\Bench Backups\20170907_043031_8ffe419c_database.sql frappe@http://35.187.239.97:~/frappe-bench
ssh: Could not resolve hostname d: Name or service not known
ssh: Could not resolve hostname http: Name or service not known
lost connection
eurekaforbesdelhi@instance-1:~$
$ scp D:\Backup\Bench Backups\20170907_043031_8ffe419c_database frappe@35.187.239.97:~/frappe-bench
ssh: Could not resolve hostname d: Name or service not known
The authenticity of host ‘35.187.239.97 (35.187.239.97)’ can’t be established.
ECDSA key fingerprint is 1a:17:29:74:09:91:49:84:78:00:aa:99:26:1f:c0:ee.
Are you sure you want to continue connecting (yes/no)? y
Please type ‘yes’ or ‘no’: yes
Warning: Permanently added ‘35.187.239.97’ (ECDSA) to the list of known hosts.
Permission denied (publickey).
lost connection
eurekaforbesdelhi@instance-1:~$
THE BACKUP FILE IS ON MY D: DRIVE OF MY LOCAL PC AND I AM TYPING ON TERMINAL OF GOOGLE CLOUD SSH ON THE SAME PC. IS IT CORRECT? @saidsl
You mean On my PC I go to the Google ERPNext instance and open SSH terminal from there?
Which new terminal are you talking about?
I transfered the file to C drive of my computer and I restarted the google terminal and then typed the command:
$ scp C:\Users\Amar\20170907_043031_8ffe419c_database frappe@35.187.239.97:~/frappe-b
ench
ssh: Could not resolve hostname c: Name or service not known
eurekaforbesdelhi@instance-1:~$