You are not logged in.

#1 2007-06-11 16:46:46

majik67
Member
Registered: 2007-05-21
Posts: 22

how do I rsync?

I just got a new laptop and want to sync all my data from my old pc... after reading around I figured rsync was the best prog to do this... but I have no Idea how to use it. Can anyone gimme some simple instructions on how use rsync?

Last edited by majik67 (2007-06-11 17:36:51)

Offline

#2 2007-06-12 21:41:20

bootiack
Member
Registered: 2007-04-10
Posts: 19

Re: how do I rsync?

rsync -avPze ssh user@box1:/path/to/file/or/directory user@box2:/path/to/files/or/directory

example
to move directory /home/cthulhu into /home box 2
rsync -avPze /home/cthulhu root@box2:/home
the result will be the whole directory cthulhu will move to box2 in /home
notice the lack of trailing slash!  the trailing slash means "stuff in this directory" as opposed to "this whole directory"
bam!
now your a wiz!

Offline

Board footer

Powered by FluxBB