elementor / lokl-cli

Interactive script to launch and manage your Lokl sites
The Unlicense
66 stars 7 forks source link

restore a backup #17

Open yoannsark opened 3 years ago

yoannsark commented 3 years ago

This backup feature is really useful, what do you think about a restore feature ? I can try to add it if you find it relevant.

leonstafford commented 3 years ago

Definitely! I have a need for it currently, to help debug a user's site. They sent the files using that backup technique.

My thoughts on the importer, but free to suggest any way you like:

leonstafford commented 3 years ago

for testing, can run sh test.sh, which is shellcheck and shellspec. shellcheck should be common to install via your package manager. shellspec installation idea can be taken from the circleCI config

leonstafford commented 3 years ago

by accepting 2 files (or maybe accept 1, which contains an .sql file in root of site files), we can accept importing imports from any standard WP export, not just rely on Lokl's exported filename structure

yoannsark commented 3 years ago

Sorry for the delay ! I've been quite busy lately.

Yes I think that the process you suggest is perfect. Do you think this feature should be accessible directly from the main menu or after creating a new site ?

Thank you, I managed to run the tests, I will try to understand the script and add that.

sameoldlab commented 3 years ago

Not sure how useful this is, but I've been using All-in-One Migration to copy between live and lokl WP sites.

leonstafford commented 3 years ago

Thanks, @ibrooooo! Sorry, have seen you've commented on the forum, but I haven't had a chance to check/reply yet.