{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » RSYNC OKE
RSYNC OKE
# apt-get install rsync
# ssh-keygen -t rsa
# scp .ssh/id_rsa.pub root@remotebox1.server.com:.ssh/authorized_keys2
# scp .ssh/id_rsa.pub root@remotebox2.server.com:.ssh/authorized_keys2
—> Kalo Menggunakan Port lain
#scp -P23 limanjaya01072014.sql dms@www.ikc.co.id:/home/dms
#rsync -avz -e ssh /home/ root@192.168.11.254:/home/dms/rsync-files
#rsync -avz -e ssh /etc/ root@192.168.11.254:/home/dms/rsync-files
#rsync -avz -e ssh /var/lib/mysql root@192.168.11.254:/home/dms/rsync-files
—-
—-
Isikan ke crontab …
Filed under: 7. Operating System