The restore command recovers a database from a replica. By default, it attempts to restore the latest data. However, it can also restore databases to a specific point-in-time if it is covered by the WAL time range. Restoration will only run if the output database file does not exist so you cannot accidentally overwrite your running database. Usage With a database path This command will restore a database specified in the Litestream configuration file to its original location.| litestream.io
The YAML configuration file provides a way to list databases and replicas that Litestream should manage. In addition, there are global variables that can be applied to all replicas. The default path for the configuration file is /etc/litestream.yml. Variable expansion By default, Litestream will perform environment variable expansion within the config file before reading it. Any references to $VAR or ${VAR} formatted variables will be replaced with their environment variable values.| litestream.io