Re: rsync
On Fri, Mar 02, 2012 at 04:33:56PM +0200, lina wrote:
> Is it wrong when use
>
> rsync -azvu source destination
>
> sent 16 bytes received 43 bytes 5.13 bytes/sec
> total size is 1507939808 speedup is 25558301.83
>
If source is a symlink you have to specify source/ otherwise you can get
something like this.
Illustrated:
> cd /tmp
/tmp ~
/tmp> mkdir x
/tmp> cp /boot/vmlinuz-2.6.3-amd64 x/
cp: kan nie stat `/boot/vmlinuz-2.6.3-amd64' uitvoer nie: No such file or directory
/tmp> cp /boot/vmlinuz-2.6.32-5-amd64 x/
/tmp> ln -sv x y
`y' -> `x'
/tmp> mkdir z
/tmp> rsync -av y z
sending incremental file list
y -> x
sent 40 bytes received 15 bytes 110.00 bytes/sec
total size is 1 speedup is 0.02
/tmp> rsync -av y/ z/
sending incremental file list
./
vmlinuz-2.6.32-5-amd64
sent 2425012 bytes received 34 bytes 4850092.00 bytes/sec
total size is 2424608 speedup is 1.00
Regards
Johann
--
Johann Spies Telefoon: 021-808 4699
Databestuurder / Data manager
Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology
Universiteit Stellenbosch.
"I will lift up mine eyes unto the hills, from whence
cometh my help. My help cometh from the LORD, which
made heaven and earth."
Psalms 121:1,2
Reply to:
- Follow-Ups:
- Re: rsync
- From: lina <lina.lastname@gmail.com>
- References:
- rsync
- From: lina <lina.lastname@gmail.com>