Re: rsync email notification on success and failure + Log

2010-01-05 Thread henri
> I have a bash script for rsync that should tranfer all my filer from one > drive to the other. > > I would like to know how I can make the script sending me an email after the > script is run and be able to know if it was a success or not and also if > possible to include the log file. You

Re: link-dest question

2010-01-05 Thread doug
On Tue, 5 Jan 2010, Wayne Davison wrote: On Mon, Jan 4, 2010 at 12:33 PM, wrote:  rsync -vaxH --numeric-ids --delete --exclude=/home/apache/logs \   --link-dest=/mnt/200912/newharbor/home -e ssh newharbor.safeport.com:/home \   201001/newharbor/home/ Is that newharbor/home/

Re: link-dest question

2010-01-05 Thread Wayne Davison
On Mon, Jan 4, 2010 at 12:33 PM, wrote: > rsync -vaxH --numeric-ids --delete --exclude=/home/apache/logs \ > --link-dest=/mnt/200912/newharbor/home -e ssh newharbor.safeport.com:/home > \ > 201001/newharbor/home/ > Is that newharbor/home/home dir really desired? Without a trailing slash on

RE: Ignoring parts of stat(2)

2010-01-05 Thread Tony Abernethy
Matthias Schniedermeyer wrote: > On 05.01.2010 05:36, grarpamp wrote: > > > That option can be easily missed it's: --size-only > > > > That seems like at least part of what would be useful :) > > Certainly it covers the most common case of modtimes. > > > > However, it doesn't seem to work :( > >

Re: Ignoring parts of stat(2)

2010-01-05 Thread Matthias Schniedermeyer
On 05.01.2010 05:36, grarpamp wrote: > > That option can be easily missed it's: --size-only > > That seems like at least part of what would be useful :) > Certainly it covers the most common case of modtimes. > > However, it doesn't seem to work :( > > cp -p /etc/passwd a > cp -p /etc/passwd b

Ignoring parts of stat(2)

2010-01-05 Thread grarpamp
> That option can be easily missed it's: --size-only That seems like at least part of what would be useful :) Certainly it covers the most common case of modtimes. However, it doesn't seem to work :( cp -p /etc/passwd a cp -p /etc/passwd b ls -liT a b 5 -rw-r--r-- 1 user wheel 1706 Dec 25 03

Re: link-dest question

2010-01-05 Thread Paul Slootman
On Mon 04 Jan 2010, d...@safeport.com wrote: > > The command works but copies all files, i.e. no hard links created. > > rsync -vaxH --numeric-ids --delete --exclude=/home/apache/logs \ >--link-dest=/mnt/200912/newharbor/home -e ssh newharbor.safeport.com:/home > \ >201001/newharbor/ho

Re: Ignoring parts of stat(2)

2010-01-05 Thread Matthias Schniedermeyer
On 05.01.2010 02:33, grarpamp wrote: > How do I make rsync ignore and not report or update certain parts > of the [l]stat(2) struct or checksum when selecting which items to > report or update in a hierarchy? > > For example, I want to run: > rsync -Haxi --delete /hier1/ /hier2/ > and have it NOT