Print backup logs to console so they can be previewed
This commit is contained in:
parent
48b0335071
commit
aab1ddf62c
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user