template: sample scripts for each function. also reworked the backup script + checked it with actual_server

This commit is contained in:
2026-02-06 03:16:13 -08:00
parent cc8789e1df
commit 8665afbfa3
11 changed files with 655 additions and 32 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
mkdir -p "${HOME}"/update_logs
logFile=${HOME}/update_logs/$(date +%y_%m).log
{
echo -e "\n[+] updating example\n"
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml pull &&
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d --always-recreate-deps --remove-orphans &&
yes | sudo docker image prune -af
} &>>"$logFile"