fixed initial Bugs
This commit is contained in:
parent
1fe157e84d
commit
96c0c3f5e4
11
do-plication
Normal file → Executable file
11
do-plication
Normal file → Executable file
@ -12,7 +12,7 @@ if ["$1" = "-h" ]
|
|||||||
echo "-l Load the n'th arcive {do-plication <option> <n> [directory to back up]}"
|
echo "-l Load the n'th arcive {do-plication <option> <n> [directory to back up]}"
|
||||||
echo
|
echo
|
||||||
exit 0
|
exit 0
|
||||||
if
|
fi
|
||||||
|
|
||||||
# Going to the right directory
|
# Going to the right directory
|
||||||
# cd /media
|
# cd /media
|
||||||
@ -20,9 +20,9 @@ if
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
# overwrite the tape from the begining
|
# overwrite the tape from the begining
|
||||||
-a)
|
-a)
|
||||||
sudo screen -dmS do-plication mt -f /dev/nst0 eod;
|
sudo mt -f /dev/nst0 eod;
|
||||||
sudo mt -f /dev/nst0 status;
|
sudo mt -f /dev/nst0 status;
|
||||||
echo "your arcive will be the file number + 1"
|
echo "your arcive will be the file number"
|
||||||
sudo screen -dmS do-plication tar -cvf /dev/nst0 "$2"
|
sudo screen -dmS do-plication tar -cvf /dev/nst0 "$2"
|
||||||
true
|
true
|
||||||
;;
|
;;
|
||||||
@ -34,16 +34,15 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
-f)
|
-f)
|
||||||
sudo screen -dmS do-plication mt -f /dev/nst0 asf "$2";
|
sudo mt -f /dev/nst0 asf "$2";
|
||||||
echo "your arcive wil be $2";
|
echo "your arcive wil be $2";
|
||||||
sudo screen -dmS do-plication tar -cvf /dev/nst0 "$3"
|
sudo screen -dmS do-plication tar -cvf /dev/nst0 "$3"
|
||||||
true
|
true
|
||||||
;;
|
;;
|
||||||
|
|
||||||
-l)
|
-l)
|
||||||
sudo screen -dmS do-plication mt -f /dev/nst0 asf "$2";
|
sudo mt -f /dev/nst0 asf "$2";
|
||||||
sudo screen -dmS do-plication tar xvf /dev/nst0 -C "$3"
|
sudo screen -dmS do-plication tar xvf /dev/nst0 -C "$3"
|
||||||
true
|
true
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
exit $?
|
exit $?
|
Loading…
Reference in New Issue
Block a user