Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Script Sinkronisasi Data RPI

Script Sinkronisasi Data RPI

1. Buka Crontab, Ketik Crontab -e

*/1 * * * * /home/dms/.sendData.sh

2. Isi File .sendData.sh

#!/bin/bash
tgl=`date “+%d%m%Y”`;
mysqldump -u root -pokedeh 0335HotelBromoPark > $tgl.0335HotelBromoPark.sql
#scp -P24 $tgl.0335RmCityKaraoke.sql dms@192.168.1.10:/home/aplikas-pajakkotaprobolinggo/databases/
scp $tgl.0335HotelBromoPark.sql dms@192.168.1.10:/home/aplikas-pajakkotaprobolinggo/databases/

—-

Jangan Lupa Membuka Port 24.

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>