Add support to restore backup from a URI - local or remote
Right now, restoring rake task is quite limited.
- You need the tarball to be present in the backup directory
- Tarball's name should be in a specific format
It would be useful if we could make it more flexible
- Make the
BACKUP
variable accept a path to the tarball instead of just the timestamp prefix. - We can go even longer and make the
BACKUP
variable be a local or remote URI. If it is a remote URI, we download it first to the backup directory and then perform restore.
This helps it easier to do backup/restore in the world of k8s/helm charts.
/cc @Ahmadposten @DouweM