Closed vinitkumar closed 7 years ago
@Chive please review this one.
@Chive I had removed the asserts from this PR. Also, archive_wd is the directory where the dump file exists as I didn't wanted it to do anything with the project_home.
@Chive I have made the suggested changes, the upload is behind a flag now. It requires a project id to be passed as well as the file needs to be in the current directory where the command is executed. Hopefully, if it good enough to be merged. I have already tested all the edge case. Please check it once at your end too. If you need any changes, let me know!
Thanks!
This PR adds the support for uploading the database dump directly from the working directory. The user needs to provide the website id where the database needs to be uploaded and a valid dump file that could be restored.
In order to make sure the db dump is compatible, create a dump using the following command:
Now, in order to upload dump, run this command from the directory where the file exists.
This will upload the file after compressing it and restore it in the same way it does while uploading db from docker container for the project.
Signed-off-by: Vinit Kumar vinit.kumar@socialschools.nl