You are not logged in.

#1 2009-09-12 15:31:04

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

rsync [SOLVED]

I want to copy my files onto a fresh filesystem on my new hard drive. I'd image it, but I want a fresh filesystem.
How can I do this with rsync? What options do I need? I think I need -I, -r, -H, -p.

Last edited by Raccoon1400 (2009-09-13 20:34:19)


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2009-09-12 17:02:03

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: rsync [SOLVED]

$ cp -a /bin /boot /dev ... other ... /new-disk
-a  same as -dpR
-d same as --no-dereference --preserve=links
-p same as --preserve=mode,ownership,timestamps
-R recursive

Create /proc and /sys your self.


You need to install an RTFM interface.

Offline

#3 2009-09-12 18:04:57

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: rsync [SOLVED]

how do I create /proc and /sys?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#4 2009-09-12 20:27:22

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: rsync [SOLVED]

This is all you should need:

rsync -av --delete /mnt/old/ /mnt/new/

Offline

#5 2009-09-13 17:39:47

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: rsync [SOLVED]

ninian wrote:

This is all you should need:

rsync -av --delete /mnt/old/ /mnt/new/

That did it. Thanks.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#6 2009-09-13 18:36:04

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: rsync [SOLVED]

Raccoon1400 wrote:

how do I create /proc and /sys?

man mkdir


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB