You are not logged in.

#1 2010-12-21 07:47:29

mfaridi
Member
Registered: 2010-12-15
Posts: 192

I want rsync only download new files and keep old files

I install Arch i686 in home and in home I do not have internet connection , so at work I download all packages I need with this command

 rsync -avrt --bwlimit=58 rsync://mirror.datacenter.by/arch//extra/os/any/ /home/ddd/i686/

and move them to home and then copy them to

/var/cache/pacman/arch

and install packages with pacman
after two days , I run this command

rsync -avrt --bwlimit=58 rsync://mirror.datacenter.by/arch//extra/os/any/ /home/ddd/i686/

and I see rsync get last packages again and use many Bandwidth
how I tell rsync only download new files and keep old files

Offline

#2 2010-12-21 09:01:24

Kosmonavt
Member
Registered: 2010-02-15
Posts: 100

Re: I want rsync only download new files and keep old files

rsync manpage says the following:

...
-u, --update                skip files that are newer on the receiver
      --inplace               update destination files in-place
      --append                append data onto shorter files
      --append-verify         --append w/old data in file checksum
...

I guess you need to add -u flag.
Reading manpages is the highest virtue in GNU/Linux.

Offline

Board footer

Powered by FluxBB