fix: Fixes not copying docker volumes directory to backups.

This commit is contained in:
2025-04-17 09:15:02 -04:00
parent e6a770e1c0
commit 7bc1896316

View File

@@ -49,7 +49,7 @@ function copyVolumes() {
function backup() {
echo "Creating backup..."
tar -cvf "/tmp/$today.tar" "$temp"
tar -cvf "/tmp/$today.tar" "$1"
gzip "/tmp/$today.tar"
cp -R "/tmp/$today.tar.gz" "$backupdir"
# Cleanup temporary files.
@@ -67,8 +67,11 @@ function main() {
# copy stack configuration.
copyStacks "$temp"
# copy stack configuration.
copyVolumes "$temp"
# Create a tar to backup.
backup
backup "$temp"
# Restart services.
startServices