db-restore: add --latest option to restore the most recent backup
S3
- Dump to s3:
cubicweb-ctl db-dump --s3 --s3-clean blog
- Restore from s3:
cubicweb-ctl db-restore --s3 --latest blog
Filesystem
- Dump to fs:
cubicweb-ctl db-dump -o /tmp/backups/latest.tar.gz blog
- Restore from fs:
cubicweb-ctl db-restore --latest blog /tmp/backups
Before sending this MR, please:
-
write documentation if relevant -
update changelog if relevant