Added basics

This commit is contained in:
Johannes Schmelz 2021-01-06 21:08:40 +01:00
parent b046506c63
commit 21d11bd634

23
system-backup Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
if [ "$1" = "-h" ]
then
echo "system-backup <option> [USB Dir]"
echo
echo "If no options are specified it will use default"
echo
echo "Options:"
echo
echo "-d [USB Dir] [directory to back up]"
echo "-n use SCP instead of USB"
echo
exit 0
fi
if [ "$1" = "-d" ]
then
sudo mount /dev/sd
mv "$2"
sudo screen -dmS backup -t backup
exit 0
fi