diff --git a/home/scripts/noita-helper.sh b/home/scripts/noita-helper.sh index b4491d8..e1b604d 100644 --- a/home/scripts/noita-helper.sh +++ b/home/scripts/noita-helper.sh @@ -18,12 +18,12 @@ restic restore "latest:$SAVE_DIR" --target "$SAVE_DIR" echo "Ready to play Noita!" echo "Remember to unmount the tmpfs after playing:" -echo "sudo umount $SAVE_DIR" -echo "restic restore latest:$SAVE_DIR --target $SAVE_DIR" +echo "" +echo "restic backup -q $SAVE_DIR && sudo umount $SAVE_DIR && restic -r $RESTIC_REPOSITORY restore latest:$SAVE_DIR --target $SAVE_DIR" while true do restic backup -q "$SAVE_DIR" echo "Periodic backup done..." - sleep 30m + sleep 10m done