Initial commit of general borgmatic configuration, scripts, and systemd files

This commit is contained in:
Chris King
2025-01-08 01:44:30 -08:00
commit 1e9b1c01af
4 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Collect exclusions passed as arguments
exclusions=("$@")
for dir in /docker/*/
do
# Get the base folder name from path
folder=$(basename "$dir")
# Skip if folder is in the exclusions array
if [[ " ${exclusions[@]} " =~ " $folder " ]]; then
continue
fi
cd "$dir" || {
echo "Failed to enter directory: $dir"
continue
}
docker compose down
done