New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL backups not recognized inside docroot #314
Comments
@uberhacker can def replicate this. Easy to fix and will add some documentation around it to satisfy #316 as well. thanks for the great bug report! |
I've just discovered that my version of lando can't find files to import outside of the current directory, not just subfolders. I was trying to reference a file in my home dir:
Notice that it was able to expand
OS and lando versions:
Copying the file into the lando root did work:
|
Look at the docs on the DB import command. The path you specify is the path
in the container not on your host machine
…On Thu, Apr 23, 2020 at 4:31 PM slefevre ***@***.***> wrote:
I've just discovered that my version of lando can't find files to import
outside of the current directory, not just subfolders. I was trying to
reference a file in my home dir:
***@***.***:~/lando/website$ lando db-import ~/website_live_2020-04-21T02-00-00_UTC_database.sql.gz
File /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz not found!
Notice that it was able to expand ~ to /home/username/, so it doesn't
seem to be a problem with that expression. Trying the full path to my home
directory didn't work either:
***@***.***:~/lando/website$ lando db-import /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz
File /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz not found!
OS and lando versions:
***@***.***:~/lando/website$ lando version
v3.0.0-rrc.4
***@***.***:~/lando/website$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
Copying the file into the lando root did work:
***@***.***:~/lando/website$ cp website_live_2020-04-21T02-00-00_UTC_database.sql.gz .
***@***.***:~/lando/website$ lando db-import website_live_2020-04-21T02-00-00_UTC_database.sql.gz
Preparing to import /app/website_live_2020-04-21T02-00-00_UTC_database.sql.gz into database 'pantheon' on service 'database' as user root...
Destroying all current tables in pantheon...
NOTE: See the --no-wipe flag to avoid this step!
Gzipped file detected!
Importing /app/website_live_2020-04-21T02-00-00_UTC_database.sql.gz...
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#314 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFOFUEAEXXC56DMBDSWU7LROCQQ3ANCNFSM4DZKQITQ>
.
|
Bug Report
v3.0.0-beta.11 on LMDE - (basically Debian 8.9 in disguise)
The text was updated successfully, but these errors were encountered: