From 343d544889d0a9a961a3cea85bbec4a753fceab1 Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Thu, 28 Mar 2024 16:05:30 +0000 Subject: [PATCH] rsnapshot: rm chown from cron script --- backups/cron/daily.sh | 2 +- backups/cron/hourly.sh | 2 +- backups/cron/monthly.sh | 2 +- backups/cron/weekly.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backups/cron/daily.sh b/backups/cron/daily.sh index 9431e81..f51c4c5 100755 --- a/backups/cron/daily.sh +++ b/backups/cron/daily.sh @@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000 if mountpoint -q /media/backups; then sudo /usr/bin/rsnapshot daily - sudo chown -R thomas:thomas /media/backups + # sudo chown -R thomas:thomas /media/backups # Check the exit status of the rsnapshot command if [ $? -eq 0 ]; then /usr/bin/notify-send 'rsync' 'Daily backup completed successfully' diff --git a/backups/cron/hourly.sh b/backups/cron/hourly.sh index c920473..c4f9754 100755 --- a/backups/cron/hourly.sh +++ b/backups/cron/hourly.sh @@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000 if mountpoint -q /media/backups; then sudo /usr/bin/rsnapshot hourly - sudo chown -R thomas:thomas /media/backups + # sudo chown -R thomas:thomas /media/backups # Check the exit status of the rsnapshot command if [ $? -eq 0 ]; then /usr/bin/notify-send 'rsync' 'Hourly backup completed successfully' diff --git a/backups/cron/monthly.sh b/backups/cron/monthly.sh index ef01db4..fb728d6 100755 --- a/backups/cron/monthly.sh +++ b/backups/cron/monthly.sh @@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000 if mountpoint -q /media/backups; then sudo /usr/bin/rsnapshot monthly - sudo chown -R thomas:thomas /media/backups + # sudo chown -R thomas:thomas /media/backups # Check the exit status of the rsnapshot command if [ $? -eq 0 ]; then /usr/bin/notify-send 'rsync' 'Monthly backup completed successfully' diff --git a/backups/cron/weekly.sh b/backups/cron/weekly.sh index 07aa885..2596679 100755 --- a/backups/cron/weekly.sh +++ b/backups/cron/weekly.sh @@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000 if mountpoint -q /media/backups; then sudo /usr/bin/rsnapshot weekly - sudo chown -R thomas:thomas /media/backups + # sudo chown -R thomas:thomas /media/backups # Check the exit status of the rsnapshot command if [ $? -eq 0 ]; then /usr/bin/notify-send 'rsync' 'Weekly backup completed successfully'