From ab13b80238591441753ffe324cba562210455c31 Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Sat, 3 Sep 2022 21:30:19 -0700 Subject: [PATCH] Add snapshotdb in Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 10980a76..636600b1 100644 --- a/Makefile +++ b/Makefile @@ -61,3 +61,6 @@ syncdb: docker cp latest.tar lutrisdb:/backups docker exec lutrisdb pg_restore -U lutris --clean --dbname=lutris /backups/latest.tar rm latest.tar + +snapshotdb: + docker exec lutrisdb pg_dump --format=tar -U lutris lutris > snapshot.tar