Skip to content

Restoring locally -> input device is "not a TTY" #64

Description

@BramvdnHeuvel

I am running a PostgreSQL container with the name Synapse_Database. It has a database called synapse which I reach as user synapse. Upon running the command below, the program exits immediately.

zcat local-backup.sql.gz | docker exec --tty --interactive Synapse_Database_Backup psql --username=synapse --dbname=synapse -W

Instead of seemingly doing anything, it only outputs the input device is not a TTY.

I'm running the command on WSL 2 if it matters. Is this a bug or am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions