Print backup logs to console so they can be previewed

This commit is contained in:
Kuba Orlik 2025-10-17 22:39:06 +02:00
parent 48b0335071
commit aab1ddf62c

View File

@ -5,6 +5,7 @@ original_dir=$(pwd)
source ./vars.sh source ./vars.sh
cd "$original_dir" cd "$original_dir"
(
./mount.sh & ./mount.sh &
RESTIC_PID=$! RESTIC_PID=$!
@ -53,3 +54,4 @@ kill -SIGINT $RESTIC_PID
umount /mnt/restic umount /mnt/restic
echo "DONE" echo "DONE"
) >"/var/log/backup-restore-$(date +%s).log"