improvements

This commit is contained in:
Morten Olsen
2025-09-06 00:04:28 +02:00
parent a27dd320e6
commit c5a15ed5d4
5 changed files with 97 additions and 2 deletions

View File

@@ -16,14 +16,13 @@ mkdir -p "/mnt/backup"
echo "Starting Restic backup from $SOURCE_DIR to $RESTIC_REPOSITORY"
echo "Checking/Initializing Restic repository..."
restic init --repository "$RESTIC_REPOSITORY" || true
restic init --repo "$RESTIC_REPOSITORY" || true
echo "Running Restic backup..."
restic backup \
"$SOURCE_DIR" \
--verbose \
--tag "daily" \
--exclude-cache \
if [ $? -eq 0 ]; then
echo "Restic backup completed successfully!"