muesli / docker-backup

A tool to create & restore complete, self-contained backups of Docker containers
MIT License
311 stars 41 forks source link

Different snapshot for the same container #16

Open mcollado opened 3 years ago

mcollado commented 3 years ago

Creates a different snapshot of the same container if invoked by specifying the container short IDs or --all:

docker-backup backup e45b4d61b2c9
[...]
docker-backup backup --all

You got

10291 25 mar 16:45 mariadb-10.5.8-e45b4d61b2c9.backup.files
 2179 25 mar 16:45 mariadb-10.5.8-e45b4d61b2c9.backup.json
10343 25 mar 17:42 mariadb-10.5.8-e45b4d61b2c9b5de6c973d873bdfea38224e9420bf659d7a55f8f274b11d9081.backup.files
 2179 25 mar 17:42 mariadb-10.5.8-e45b4d61b2c9b5de6c973d873bdfea38224e9420bf659d7a55f8f274b11d9081.backup.json

Restic snapshots

ID        Time                 Host          Tags
------------------------------------------------------------------------------------------------------------------------------------

12f4fdb8  2021-03-25 16:45:44  xxx.local  mariadb-10.5.8-e45b4d61b2c9
2a064352  2021-03-25 17:41:39  xxx.local  mariadb-10.5.8-e45b4d61b2c9b5de6c973d873bdfea38224e9420bf659d7a55f8f274b11d9081

It works OK if I specify the long ID.

I'm not sure if is a bug or can be addressed. On the other hand, the program is amazing.