Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Help on a script...



> I have a question for you: Do you know how to copy (rsync via ssh) a tree
> only, no files? I just want to avoid long log file, with directories...

Hello Bruno,
Have followed this thread can I confirm your question is:
  * You want rsync to act as now, doing all the copy of new and changed
files
  * You want it to be quieter

? And by quieter you mean:
  * Still tell you about files that being copied
  * Not tell you about files that are not changed
  * Not tell you about directories in which no files changed.

? When I use rsync I thought it already had that behaviour. It only
shows me a directory in which there are some files it is copying, and
that does not feel like noise.

The rsync command I use is, as follows; I believe it is standard:
 RSYNC="rsync -avz --delete -e ssh --safe-links"

To remove mention of the directories completely you could filter output
through grep to remove any lines that end in a forward slash:

  rsync ... source target | egrep -v '/$'

Darren



-- 
Darren Cook, Software Researcher/Developer

http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links