Showing posts with label host. Show all posts
Showing posts with label host. Show all posts

Monday, September 11, 2017

Ubuntu auto backup to remote host using scp rsync crontab

Ubuntu auto backup to remote host using scp rsync crontab


Bash script to transfer files via SCP

#!/bin/bash 
REMOTE_IP="x.x.x.x"
SCP_PASSWORD="mypassword"
expect -c "
set timeout 1
spawn scp -r /Local/SourceFolder uname@$REMOTE_IP:/Remote/DestFolder
expect yes/no { send yes ; exp_continue }
expect password: { send $SCP_PASSWORD }
expect 100%
sleep 1
exit
"
Save the above script to autoscp.sh and give the execute permission. The SourceFolder is the folder whose contents are sent to DestFolder on the remote host .
$ chmod +x file.sh
$ ./file.sh
Install expect if its not on our machine, expect  is a program that "talks" to other interactive programs according to a script. We use this in this script to provide the password when asked for by the scp command.
sudo apt-get install expect

Bash script to sync local & remote folder via rsync

#!/bin/bash 
REMOTE_IP="x.x.x.x"
SCP_PASSWORD="mypassword"
#And now transfer the file over
expect -c "
set timeout 1
spawn rsync -azvv -e ssh /Local/SrcFolder uname@$REMOTE_IP:/Remote/DstFolder
expect yes/no { send yes ; exp_continue }
expect password: { send $SCP_PASSWORD }
expect 100%
sleep 1
exit
"
-a preserves the date and times, and permissions of the files
-z compresses the data
-vv increases the verbosity of the reporting process
-e specifies remote shell to use

Save the above script to autorsync.sh file and give the execute permission.
Refer this Ubuntu documentation for more details on rsync. Both the bash scripts mainly automate the rsync and scp transfer, so that password dont need to be supplied.

Scheduling this rsync and scp scripts to run periodically

Use crontab to schedule these scripts to run periodically. To edit crontab use
crontab -e
Add the below lines
# m h dom mon dow command
0 * * * * cd /location/of/script;./autoscp.sh
30 * * * * cd /location/of/script;./autorsync.sh
m - minute
h - hour
dom - day of the month
mon - month
dow - day of the week
0 * * * *  will run the script at 0 minutes every hour, every day of all the months.
30 * * * * will run the script at every 30 minutes on every hour, every day of all the months.

download file now

Read more »

Monday, August 7, 2017

Tutorial Como instalar e usar Garena Host Bot

Tutorial Como instalar e usar Garena Host Bot


Passo 1
Fa�a o DOWNLOAD

Passo 2

Instale o programa.



obs: (As portas do seu roteador devem estar abertas, caso contr�rio n�o ir� funcionar).


 

Passo 3 

V� para a pasta de instala��o e executar configurator.exe



1 .- Certifique-se de seu caminho war3 est� correto. Se n�o, clique ...", mudan�a "para alter�-lo.

2 .- Selecione um mapa do seu warcraft II maps diret�rio de download.
3 .- Digite seu nome de usu�rio garena.
4 .- Digite o nome do jogo.
5 .- Selecione a op��o outros, se voc� gosta.
6 .- Clique em "Set".



Passo 4 

Entre no Garena, depois entre em uma sala !

Passo 5 
Executar hostbot garena (em win7 DIREITO ... COMO ADMINISTRADOR CLIQUE --- RUN)


Passo 6
1 .- Na guia OPTIONS:
2 .- Verifique se o seu caminho do garena est� correto.
3 .- Se n�o, clique no quadrado da direita.



Passo 7
1 .- Busca o garena na sua pasta.



 
2.- Pressione "hook Garena now" (2x) e o bot�o ir� mudar para "Unhook garena now".




Pronto agora � s� jogar!


Fonte: .Link.

download file now

Read more »

Saturday, August 5, 2017

Tutorial easy Host Game Battlenet with Simple Port Forwarding

Tutorial easy Host Game Battlenet with Simple Port Forwarding


First you must download the software in�http://www.simpleportforwarding.com/download

Then, Run the program and the pic should be like this



After that Choose your router type that suitable with your modem by click "+" button



In database box, choose your Warcraft III, then click add custom button

the pic will be like this



there are few boxthat must be filled....

you must fill that box with..

first box Name just fill in WarcraftIII

second box choose TCP,UDP

third box port start fill in 6112

fourth bos port end fill in 6119

after all box haas been filled, click add button...

and pic will be like this



finally click update router in the botom right

the firewall must be switch off

and enjoy hosting game....

source and indonesia version in�http://mediagamer.biz/showthread.php?320-Tutorial-CR8-Room-dengan-Simple-Port-Forwarding-With-Pic

Feel free to ask :D

download file now

Read more »