handling of final partial block in rsync

2011-10-21 Thread Peter A. Friend
Greetings, I have been using the rsync C source as a guide for porting the rsync algorithm to Java. This has been successful, but there is one low level detail I am having some issues with. Assuming the default block size of 700 bytes, when stepping through the file and generating checksums

Re: With rsync --link-dest, is it possible to determine which files are new?

2011-10-21 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ummm, I didn't use any perl libraries. The only thing I used that isn't standard perl is that I shell out to the md5sum command rather than using a module for that. On 10/21/11 22:14, Ido Magal wrote: > Thanks! > > Unfortunately, it doesn't look lik

Re: With rsync --link-dest, is it possible to determine which files are new?

2011-10-21 Thread Ido Magal
Thanks! Unfortunately, it doesn't look like the perl for DroboFS supports the required libraries for your script, >error while loading shared libraries: libperl.so.5.10: cannot open shared >object file: No such file or directory but --itemize-changes should be sufficient. On Fri, Oct 21, 20

Re: rsync compares all files again and again

2011-10-21 Thread Scott Mcdermott
Elliot Wilen on 2011/10/14 -0700 @17:32:04: > Here's an idea. Use inotify/incrond to build a list > of which files or directories have changed since a > certain time. Then when you run rsync, you can either > feed the list directly, or use it to generate a > subset of directories to look at. if yo

Re: With rsync --link-dest, is it possible to determine which files are new?

2011-10-21 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The simplest solution is to add --itemize-changes to your backup parameters. That way rsync will give you the list of what files it modified as well as why it needed to modify them (note that if you use - --verbose twice you will see the files that it

With rsync --link-dest, is it possible to determine which files are new?

2011-10-21 Thread Ido Magal
Hi, I posted the following question on Stack Overflow and got no response. I'm hoping this list might provide some answers. http://stackoverflow.com/q/7629550/597864 I'm using rsync --link-dest to differentially back up my computer every day. After each backup, I'd like to save out a log of the