LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-15-2005, 11:16 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
rsync questions


I would like to create a mirror, so i copied some stuff via a high-speed connection and transfered it home. I typed the command "rsync -rtlv ......." in order to fill in the "blanks"- the missing files ( i hadn't downloaded anything i needed) using my 384 adsl. However, i think that at the present time rsync isn't filling the "blanks" only, but is also replacing stuff.

How can i find out if this is true?
How can i stop it this from happening? - I thought that the main characteristic of rsync was, that it also files that have changed, deletes old ones, download new ones, after comparing some file lists.
Thanks

Last edited by kpachopoulos; 07-15-2005 at 03:29 PM.
 
Old 07-15-2005, 11:51 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
It depends on the options you use. For mirroring, I usually use:

rsync --rsh="ssh" -av --partial --delete-after --progress source destination

The 'man rsync' command will provide full documentation on rsync and its options.
 
Old 07-15-2005, 03:27 PM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
Another question:
I rsync to a folder containing only rpms:
---------------------
FreeWnn-1.10pl020-6.fc4.i386.rpm
FreeWnn-devel-1.10pl020-6.fc4.i386.rpm
FreeWnn-libs-1.10pl020-6.fc4.i386.rpm
GiNaC-1.3.1-6.fc4.i386.rpm
...rpms
---------------------

However in my local folder the following 3 folders are added:
---------------------
debug
repodata
headers

FreeWnn-1.10pl020-6.fc4.i386.rpm
FreeWnn-devel-1.10pl020-6.fc4.i386.rpm
FreeWnn-libs-1.10pl020-6.fc4.i386.rpm
GiNaC-1.3.1-6.fc4.i386.rpm
...rpms
---------------------
I don't think that something like this has happened in other occasions. Is this something, that the admin has programed? Is this the default behavior of the rsync?
What caused it anyway?
Thanks

Last edited by kpachopoulos; 07-15-2005 at 03:29 PM.
 
Old 07-15-2005, 03:33 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The directories existed at some point, so rsync copied them. Unless you use one of the delete options (like "--delete-after" in my example), files and directories will accumulate - they will never be deleted, even if they are deleted from the source.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync --delete question Red Squirrel Linux - Software 2 10-10-2005 09:55 PM
Question about rsync bgriesi Linux - Networking 4 12-31-2004 08:19 AM
rsync error AND/OR dump question Sinope Linux - General 4 08-26-2004 05:57 PM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 08:46 AM
rsync question falco365 Programming 4 05-25-2003 09:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration