2012/9/25 Indracyd <nus...@yahoo.com>
>
>
>
>
> See & Xplorer Cyd Blogs! http://indracyd.wordpress.com
>
>
> ----- Original Message -----
> > From: Willy Sudiarto Raharjo <will...@gmail.com>
> > To: tanya-jawab@linux.or.id
> > Cc:
> > Sent: Tuesday, 25 September 2012 3:19 PM
> > Subject: Re: [tanya-jawab] tanya rsync
> >
> >>  saya kesulitan untuk menerapkan rsync dengan perintah --include, kasusnya
> > sbb :
> >>  saya ingin mengcopy hanya berextension .log & .old saja yang di copykan
> > ke /home/jargo/tes tapi tidak bisa apakah ada yang salah dalam penulisannya?
> >>   rsync -avz --include='*log, *old' --exclude='*' -e ssh
> > root@123.123.123.1:/home/jabrik/tes/ /home/jargo/tes/
> >
> > --include "*.log" --include *.old"
>
> trims2 infonya,
> btw saya mempunya pertanyaan lanjutan karena akan dijadikan script dan 
> dijalankan lewat cron, saya menggunakan metode rsa key untuk login ssh namun 
> masih bisa ya, selalu meminta password2 terus saya gunakan tutorial ini :
>
> pada server 123.123.123.1
> ssh-key -t rsa
> ssh-copy-id -i id_dsa.pub root@123.123.123.2
>
>
> menjalankannya sbb :
>
> rsync -avz --include='*log, *old' --exclude='*' -e ssh -i id_dsa.pub 
> root@123.123.123.1:/home/jabrik/tes/ /home/jargo/tes/
>
>
> namun selalu ditanyakan password...
> mohon pencerahannya
>
> terimakasih
> Cyd

Untuk koneksi, yang digunakan adalah private keynya, bukan public key:

rsync -avz --include='*log, *old' --exclude='*' -e ssh -i id_dsa
root@123.123.123.1:/home/jabrik/tes/ /home/jargo/tes/

Sebelumnya, test dulu dengan:
ssh -i id_dsa root@123.123.123.1

Klo bisa masuk ke prompt tanpa password, maka rsync juga ga akan minta password.

--
Donny Kurnia
Apple ID: donnykur...@gmail.com
Twitter: @donnykurnia
Skype: donnykurnia
My online profile:
http://www.linkedin.com/in/donnykurnia
http://careers.stackoverflow.com/donnykurnia
http://re.vu/donnykurnia
http://hantulab.blogspot.com
-------------------------------------------
At times the world can seem an unfriendly and sinister place. But
believe us when we say there is much more good in it than bad. And
what might seem to be a series of unfortunate events, may in fact, be
the first steps of a journey.
-- A Series of Unfortunate Events

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke