Added basics
This commit is contained in:
parent
b046506c63
commit
21d11bd634
23
system-backup
Normal file
23
system-backup
Normal 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
|
Loading…
Reference in New Issue
Block a user