Skip to content

Snapshots WP CLI commands are not executed at all #59

@kmgalanakis

Description

@kmgalanakis

Describe the bug

I was trying to download a snapshot via the LocalWP shell in Windows and even though I was getting no errors, the snapshot was never downloaded.

Debugging the code, I realized that the WP CLI commands are not executed and this is the output I get for the failed snapshot download WP CLI command ( wp snapshots download f3e0b62aa868982e1e53776fa769a5ab --quiet --repository=10up --include_db --include_files)

C:\Users\kmgal\Local Sites\hello-world\app\public>wp snapshots pull f3e0b62aa868982e1e53776fa769a5ab
Security Warning: Snapshots creates copies of your codebase and database. This could result in data retention policy issues, please exercise extreme caution when using production data.
Do you want to pull files? [Y/n]:
Do you want to pull the database? [Y/n]:
Are you sure you want to pull this snapshot? This is a potentially destructive operation. Please run a backup first. [y/n] y
stdClass Object
(
    [stdout] =>
    [stderr] => '""C:\Program' is not recognized as an internal or external command,
operable program or batch file.
    [return_code] => 1
)
snapshots download f3e0b62aa868982e1e53776fa769a5ab --quiet --repository=10up --include_db --include_filesSnapshot downloaded.
Importing database...
The system cannot find the path specified.
Database imported.
Preparing to replace URLs...
Home URL (defaults to home URL in snapshot: https://hello-world.local):

Steps to Reproduce

  1. In the shell of LocalWP in windows run wp snapshots pull f3e0b62aa868982e1e53776fa769a5ab

Screenshots, screen recording, code snippet

image

Environment information

  • OS: Windows 11

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn’t working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions