From 041bbcc27ea240d8d014b60449bf3bcb205718fe Mon Sep 17 00:00:00 2001 From: napnap75 Date: Sat, 30 Apr 2022 18:55:18 +0200 Subject: [PATCH] Added the ability to exclude files --- restic-auto/restic-auto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restic-auto/restic-auto b/restic-auto/restic-auto index d00973b..415be37 100755 --- a/restic-auto/restic-auto +++ b/restic-auto/restic-auto @@ -4,7 +4,7 @@ function backup_dir { # Check if the dir to backup is mounted as a subdirectory of /root inside this container if [ -d "/root_fs$1" ]; then - restic backup /root_fs$1 + restic backup $RESTIC_BACKUP_FLAGS /root_fs$1 return $? else echo "[ERROR] Directory $1 not found. Have you mounted the root fs from your host with the following option : '-v /:/root_fs:ro' ?" @@ -14,7 +14,7 @@ function backup_dir { # Backup one file function backup_file { - cat $1 | restic backup --stdin --stdin-filename $2 + cat $1 | restic backup $RESTIC_BACKUP_FLAGS --stdin --stdin-filename $2 return $? }