Skip to content

backup:restore shows confusing results when selecting a specific file #2710

@davereid

Description

@davereid

If a run terminus backup:restore site.env --file=site_env_date_code.tar to restore only a specific time and element, what happens is I get this output:

~ terminus backup:restore sitename.live --file=sitename_live_2025-08-07T23-52-17_UTC_database.sql.gz

 Are you sure you want to restore to live on sitename? (yes/no) [no]:
 > y

 [notice] Restored the code backup to live.
 [notice] Restored the files backup to live.
 [notice] Restored the database backup to live.

Note, I only expected to see [notice] Restored the database backup to live. happen but not code and files, even though I don't think the workkflow actually restored code and files. It made me panic on doing a rollback that included more than was expected

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions