Verdammt gutes Autobackup Script
case "$1" in
start)
echo "#################################################################"
echo "##########################Starte Mining##########################"
echo "#################################################################"
cd /home/daten/poclbm
./poclbm.py -d 1 --host=pit.deepbit.net --port=8332 --user=FFUUUUUUUUU --pass=FFUUUUUUUUU -v -w256 -f 1 VECTORS BFI_INT FASTLOOP=false AGGRESSION=12
;;
stop)
exit 1
;;
install)
echo "#################################################################"
echo "########################Instaliere OpenCL########################"
echo "#################################################################"
sudo apt-get install python-pyopencl -y
;;
deinstall)
echo "#################################################################"
echo "#######################DeInstaliere OpenCL#######################"
echo "#################################################################"
sudo apt-get remove nvidia-current -y
;;
gogo)
echo "#################################################################"
echo "########################Instaliere OpenCL########################"
echo "#################################################################"
sudo apt-get install python-pyopencl -y
echo "#################################################################"
echo "##########################Starte Mining##########################"
echo "#################################################################"
cd /home/daten/poclbm
./poclbm.py -d 1 --host=pit.deepbit.net --port=8332 --user=FFUUUUUUUUU --pass=FFUUUUUUUUU -v -w256 -f 1 VECTORS BFI_INT FASTLOOP=false AGGRESSION=12
;;
over)
echo "#################################################################"
echo "###########################Overclock############################"
echo "#################################################################"
AMDOverdriveCtrl
;;
*)
echo $"Machst du so: $0 {start|stop|install|deinstall|over}"
exit 1
esac
Ich füg' nachher erstmal noch die SCP Methode hinzu.Quote:
Mach ne func für autocron.
(Is von meinem Epischen mining-tool, lass mich)Code:case "$1" in start) echo "#################################################################" echo "##########################Starte Mining##########################" echo "#################################################################" cd /home/daten/poclbm ./poclbm.py -d 1 --host=pit.deepbit.net --port=8332 --user=FFUUUUUUUUU --pass=FFUUUUUUUUU -v -w256 -f 1 VECTORS BFI_INT FASTLOOP=false AGGRESSION=12 ;; stop) exit 1 ;; install) echo "#################################################################" echo "########################Instaliere OpenCL########################" echo "#################################################################" sudo apt-get install python-pyopencl -y ;; deinstall) echo "#################################################################" echo "#######################DeInstaliere OpenCL#######################" echo "#################################################################" sudo apt-get remove nvidia-current -y ;; gogo) echo "#################################################################" echo "########################Instaliere OpenCL########################" echo "#################################################################" sudo apt-get install python-pyopencl -y echo "#################################################################" echo "##########################Starte Mining##########################" echo "#################################################################" cd /home/daten/poclbm ./poclbm.py -d 1 --host=pit.deepbit.net --port=8332 --user=FFUUUUUUUUU --pass=FFUUUUUUUUU -v -w256 -f 1 VECTORS BFI_INT FASTLOOP=false AGGRESSION=12 ;; over) echo "#################################################################" echo "###########################Overclock############################" echo "#################################################################" AMDOverdriveCtrl ;; *) echo $"Machst du so: $0 {start|stop|install|deinstall|over}" exit 1 esac
zb. ./backup start -> startet das backup & ./backup add 10 -> alle 10h
DBS="account"
DBS="$($MYSQL -u $MyUSER -h $MyHOST -p$MyPASS -Bse 'show databases')"
Deny the first command "DBS="account" and delete the "#" beforeQuote:
tanks for the release aiiR7 but i have 1 question if possible
on your script you have 2 options
1 make the backup just for 1 databases ex: account
2 make backup for all databasesPHP Code:DBS="account"
so my question is if is possible we select what databases we want to make the backup for ex:PHP Code:DBS="$($MYSQL -u $MyUSER -h $MyHOST -p$MyPASS -Bse 'show databases')"
i want all but not the log databases
DBS="$($MYSQL -u $MyUSER -h $MyHOST -p$MyPASS -Bse 'show databases')"
Yes.Quote:
Kann eine zeitbedingte wiederholung eingebaut werden? Das es halt ausgeführt wird und weitgehend von allein läuft?