LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2009, 10:32 PM   #1
cattien
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
remote backup with rsync


Dear all,


i want remote backup from linux server to windows xp. linux server was setup rsync and ssh with following model:

linux server ...........................windows xp

192.168.1.100 192.168.1.101

\data c:\backup


1. i was setup cwrsync in windows xp with default path.

2. run cmd, type: path=%path%;c:\program files\cwrsync\bin
3. create key, type: ssh-keygen -f /cygdrive/c/ssh_key -t rsa -N "
4. in linux server, create folder, type: mkdir /.ssh/authorized_keys
5. copy ssh_key to linux server, type:
rsync -e ssh /cygdrive/c/ssh_key.pub root@192.168.1.100:/.ssh/authorized_keys/key.pub

now, if i want transfer data from xp to linux, i do following:

rsync -e ssh /cygdrive/c/abc.zip root@192.168.1.100:/data/

i want backup /data in linux to xp,but I can't . please help me.
 
Old 09-15-2009, 12:36 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Just reverse the source/destination -

Code:
rsync -e ssh /cygdrive/c/abc.zip root@192.168.1.100:/data/
becomes:

Code:
rsync -e ssh root@192.168.1.100:/data/ /cygdrive/c/some_directory/
Note: just be careful where you put it ...

cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup using rsync mkrems Linux - Software 6 04-04-2009 02:07 PM
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 02:22 PM
rsync backup... tarballed Linux - Networking 10 06-27-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration