Fixed uneeded output redirection on prune command.

This commit is contained in:
james 2024-11-19 17:19:54 +00:00
parent c21f9d4cc7
commit 1f5cbd6061

View file

@ -5,5 +5,5 @@ cd ${BACKUP_ROOT}
date +"%h %e %T $HOSTNAME restic $$[$BASHPID]: Starting backup"
restic backup --exclude-file /etc/restic/excludes.txt .
date +"%h %e %T $HOSTNAME restic $$[$BASHPID]: Pruning old files"
restic prune >> /var/log/restic.log
restic prune
date +"%h %e %T $HOSTNAME restic $$[$BASHPID]: Backup complete"