non-existing parent directories

2006-10-19 Thread Darin Perusich
hello,

is there a way for rsync to create non-existing parent directories when
syncing files to a destination? something similar to 'mkdir -p
non-existing/directory'. i'm doing 'rsync -r /path/to/source
/path/to/non-existing/directory', and the 'non-existing/directory'
location doesn't exist.

the errors i get is...
rsync: mkdir /path/to/non-existing/directory', failed: No such file or
directory (2)
rsync error: error in file IO (code 11) at main.c(381)
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

thanks

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
[EMAIL PROTECTED]
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


track a stolen laptop via rsync

2006-10-19 Thread jerrytown

My wife's Windows XP laptop was stolen a couple days ago.  Every night the
computer automatically preforms an rsync to a Debian Linux computer (the
dumb-dumbs didn't steal that).  My question: if the laptop successfully
connects to the Linux box can you think of anyway I can use this fact to
track the computer (maybe an IP address from its location., etc.)?

By they way I could really care less about the 2-year old laptop, I'm trying
to send these guys to jail and/or recover my wife's jewelry.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/track-a-stolen-laptop-via-rsync-tf2475517.html#a6903656
Sent from the Samba - rsync mailing list archive at Nabble.com.

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: track a stolen laptop via rsync

2006-10-19 Thread Jan-Benedict Glaw
On Thu, 2006-10-19 12:19:57 -0700, jerrytown [EMAIL PROTECTED] wrote:
 My wife's Windows XP laptop was stolen a couple days ago.  Every night the
 computer automatically preforms an rsync to a Debian Linux computer (the
 dumb-dumbs didn't steal that).  My question: if the laptop successfully
 connects to the Linux box can you think of anyway I can use this fact to
 track the computer (maybe an IP address from its location., etc.)?

Sure. Get the IP address and the exact timestamps of the session. Then
use whois to find out about the carrier this IP address belongs to.

Then email their abuse account (usually [EMAIL PROTECTED]) and ask
them for help.  If they're unwilling (most probably), go to the
nearest police station with your evidence.

MfG, JBG

-- 
  Jan-Benedict Glaw  [EMAIL PROTECTED]  +49-172-7608481
Signature of:   Ich hatte in letzter Zeit ein bißchen viel Realitycheck.
the second  :   Langsam möchte ich mal wieder weiterträumen können.


signature.asc
Description: Digital signature
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: non-existing parent directories

2006-10-19 Thread Matt McCutchen

On 10/19/06, Darin Perusich [EMAIL PROTECTED] wrote:

is there a way for rsync to create non-existing parent directories when
syncing files to a destination? something similar to 'mkdir -p
non-existing/directory'. i'm doing 'rsync -r /path/to/source
/path/to/non-existing/directory', and the 'non-existing/directory'
location doesn't exist.


Rsync will only create the top-level destination directory, not its
parents.  So just run an appropriate mkdir -p command before rsync.
If this needs to happen on the remote host of a transfer over SSH,
pass rsync something like --rsync-path=mkdir -p
/path/to/non-existing/directory  rsync.

Matt
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Logging only files transferred not directories

2006-10-19 Thread Christian Hack
Hello,

I'm running my rsynce server on Win2k3 Server. One client under Linux and
another on Win2k3 Server. The problem is not really OS related though.

My Server 2k3 client command is:
C:\Progra~1\cwRsync\bin\rsync -rtv --ignore-errors --stats --delete
--delete-during --delete-excluded
--link-dest=/cygdrive/d/previous/c/backup.1 --files-from=files-from.txt
--exclude-from=exclude-from.txt src dst

Before running I cycle the directories keeping the last 30 so the last sync
is in backup.1 and then I use the hard links feature. This all works just
fine and I can successfully keep about 30 copies of about 200GB of data in
600GB of space.

However, the resulting output from rsync shows every directory as being new
(since technically it is). If the backups aren't rotated, the directories
already exist and as such aren't printed. E.g. this is what I get

CVS/cvsrepo/EDMI/1560-Cal System Equipment/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/CVS/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/calib.cpp,v
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/calib.h,v
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/history.txt,v
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z12-Calibration Database/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z12-Calibration Database/CVS/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z13-MiniCrunch2/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z13-MiniCrunch2/CVS/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z14-Crunch2k4/
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z14-Crunch2k4/CVS/

Is there any way to keep the verbosity high enough to print the transferred
files only? Otherwise every log file I get basically contains a complete
directory structure making it rather large and also somewhat difficult to
see where the backup is spending time... In the above example, I'd only want
to see:

CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/calib.cpp,v
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/calib.h,v
CVS/cvsrepo/EDMI/1560-Cal System Equipment/Z11-Frontend/history.txt,v

Suggestions?

Thanks

CH


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: track a stolen laptop via rsync

2006-10-19 Thread Aaron Morris

On 10/19/06, Jan-Benedict Glaw [EMAIL PROTECTED] wrote:

On Thu, 2006-10-19 12:19:57 -0700, jerrytown [EMAIL PROTECTED] wrote:
 My wife's Windows XP laptop was stolen a couple days ago.  Every night the
 computer automatically preforms an rsync to a Debian Linux computer (the
 dumb-dumbs didn't steal that).  My question: if the laptop successfully
 connects to the Linux box can you think of anyway I can use this fact to
 track the computer (maybe an IP address from its location., etc.)?

Sure. Get the IP address and the exact timestamps of the session. Then
use whois to find out about the carrier this IP address belongs to.

Then email their abuse account (usually [EMAIL PROTECTED]) and ask
them for help.  If they're unwilling (most probably), go to the
nearest police station with your evidence.

MfG, JBG


I suppose this is way off topic, but anyway

The police may not be much help since they are probably more concerned
with more important cases.  Though, you definitely need to file a
police report.

If the ISP will not help you, which is probably not likely, find
yourself a lawyer.  A lawyer will be able to use the courts to compel
the ISP to reveal the identity of the person on their network
(probably using something like the John Doe lawsuits the RIAA is
using against file-sharers).

You probably won't get to send them to jail since [me thinks] this
would be a civil case, but you might be able to recover some of what
was stolen.

--
Aaron W Morris (decep) [EMAIL PROTECTED]
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Logging only files transferred not directories

2006-10-19 Thread Wayne Davison
On Fri, Oct 20, 2006 at 08:59:04AM +1000, Christian Hack wrote:
 Is there any way to keep the verbosity high enough to print the transferred
 files only?

You can just filter the output, via some equivalent of this:

rsync ...CMD... | grep -v '/$'

That discards every line that ends in a slash (which are the dirs).

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Logging only files transferred not directories

2006-10-19 Thread Matt McCutchen

On 10/19/06, Wayne Davison [EMAIL PROTECTED] wrote:

rsync ...CMD... | grep -v '/$'


OK, that accomplishes what Christian literally asked for, but it might
be useful to show the directories that actually changed since the
previous backup.

Matt
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


RE: Logging only files transferred not directories

2006-10-19 Thread Christian Hack
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matt McCutchen
 Sent: Friday, 20 October 2006 10:45 AM
 To: Wayne Davison
 Cc: Christian Hack; rsync@lists.samba.org
 Subject: Re: Logging only files transferred not directories
 
 
 On 10/19/06, Wayne Davison [EMAIL PROTECTED] wrote:
  rsync ...CMD... | grep -v '/$'
 
 OK, that accomplishes what Christian literally asked for, but it might
 be useful to show the directories that actually changed since the
 previous backup.
 

Linux client is an easy fix then. I'll have to get cygwin grep to play
nicely with my windows batch file I guess - I don't think I can pipe can I?
Currently I just  the output into a text file along with a lot of other
info like times etc which is emailed when it's finished. *nix is so much
nicer for this sort of thing...

Matt: Yes it wouldn't show new/renamed directories but only if they were
empty, right? If they had new files as well, you'd see they existed. If the
directory changed (i.e. files in it changed) it would show up too. 

I'm not concerned about directories changing really unless I'm missing
something you're thinking of Matt. For me it's more the files that are
changing, so the grep solution will probably do what *I* want.

Thanks
CH


-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html