docker-backup-scripts
docker-backup-scripts copied to clipboard
[Feature] Separate each volume in different tar file for better restore
A this time, the script get all volumes from a container and merge all data in one single tar file. This behavior completely prevents restoring volumes to their initial state because we cannot determine the name and data of each volume.
The idea would be to separate the volumes found in a "volumes" folder at the root of the backup and to give the name of the volume to the file. In this way, each volume can be restored and at the same time we avoid volume duplication which will affect the size of the backup (if two containers share the same volume, currently we create the backup twice)