New snapshot script for Timeshift

This commit is contained in:
Stephan Raabe
2023-02-20 12:42:39 +01:00
parent 69d320a933
commit 4f35c9426f
5 changed files with 23 additions and 15 deletions

View File

@@ -1,9 +0,0 @@
#!/bin/bash
virsh --connect qemu:///system start RDPWindows
echo "Waiting 30 sec for Windows 10 startup..."
sleep 30
echo "Starting xfreerdp now..."
xfreerdp /v:Windows10 /size:100% /d: /p:sancho /dynamic-resolution &
exit

9
scripts/launchvm.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
virsh --connect qemu:///system start win11
echo "Waiting 30 sec for Windows 11 startup..."
sleep 30
echo "Starting xfreerdp now..."
xfreerdp /v:192.168.122.42 /size:100% /d: /p:sancho /dynamic-resolution &
exit

8
scripts/snapshot.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
read -p "Enter a comment for the snapshot: " c
sudo timeshift --create --comments "$c"
sudo timeshift --list
sudo grub-mkconfig -o /boot/grub/grub.cfg
echo "DONE. Snapshot $c created!"