I use Portainer with multiple environments, and some stack names are the same between them.
This causes the script to not backup all stacks, because it overwrites the yml files (because they only contain the stack name and not the environment name).
This could be easily solved by including the stack ID or environment name in the resulting filename (or only when the file already exist).
I use Portainer with multiple environments, and some stack names are the same between them.
This causes the script to not backup all stacks, because it overwrites the yml files (because they only contain the stack name and not the environment name).
This could be easily solved by including the stack ID or environment name in the resulting filename (or only when the file already exist).