rsnapshot: rm chown from cron script
This commit is contained in:
parent
a4926743a0
commit
343d544889
4 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
|
||||||
if mountpoint -q /media/backups; then
|
if mountpoint -q /media/backups; then
|
||||||
sudo /usr/bin/rsnapshot daily
|
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
|
# Check the exit status of the rsnapshot command
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/usr/bin/notify-send 'rsync' 'Daily backup completed successfully'
|
/usr/bin/notify-send 'rsync' 'Daily backup completed successfully'
|
||||||
|
|
|
@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
|
||||||
if mountpoint -q /media/backups; then
|
if mountpoint -q /media/backups; then
|
||||||
sudo /usr/bin/rsnapshot hourly
|
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
|
# Check the exit status of the rsnapshot command
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/usr/bin/notify-send 'rsync' 'Hourly backup completed successfully'
|
/usr/bin/notify-send 'rsync' 'Hourly backup completed successfully'
|
||||||
|
|
|
@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
|
||||||
if mountpoint -q /media/backups; then
|
if mountpoint -q /media/backups; then
|
||||||
sudo /usr/bin/rsnapshot monthly
|
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
|
# Check the exit status of the rsnapshot command
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/usr/bin/notify-send 'rsync' 'Monthly backup completed successfully'
|
/usr/bin/notify-send 'rsync' 'Monthly backup completed successfully'
|
||||||
|
|
|
@ -6,7 +6,7 @@ export XDG_RUNTIME_DIR=/run/user/1000
|
||||||
|
|
||||||
if mountpoint -q /media/backups; then
|
if mountpoint -q /media/backups; then
|
||||||
sudo /usr/bin/rsnapshot weekly
|
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
|
# Check the exit status of the rsnapshot command
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/usr/bin/notify-send 'rsync' 'Weekly backup completed successfully'
|
/usr/bin/notify-send 'rsync' 'Weekly backup completed successfully'
|
||||||
|
|
Loading…
Add table
Reference in a new issue