aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Scholten2025-10-27 07:40:07 +1000
committerSam Scholten2025-10-27 07:40:07 +1000
commit77b2576fed10b6963d2ba1796135ab758f6348a6 (patch)
tree8f8f34f702916f83b2704a611ac73136eb8c3258
parent13ef7419d5ef87162a731f9a6110dc8d3c2dfbd9 (diff)
downloaddrestic-77b2576fed10b6963d2ba1796135ab758f6348a6.tar.gz
drestic-77b2576fed10b6963d2ba1796135ab758f6348a6.zip
Add missing 'upgrade' target to Makefile
- Add upgrade target that pulls latest changes before running update - This matches the help documentation and user expectations - Fixes issue where make upgrade reported 'Nothing to be done'
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f8925ea..cd050ff 100644
--- a/Makefile
+++ b/Makefile
@@ -361,6 +361,13 @@ update:
exit 1; \
fi
+upgrade:
+ @echo "=== Full DRestic Upgrade (including timers) ==="
+ @echo "Pulling latest changes from git..."
+ @git pull || { echo "Error: Failed to pull from git. Make sure you have internet access."; exit 1; }
+ @echo "Running update..."
+ @$(MAKE) update
+
update-gotify:
@echo "=== Update Gotify Configuration ==="
@if [ -f ~/.config/restic/env ]; then \