Step between --dry-run and running?

Matt McCutchen matt at mattmccutchen.net
Sun Jun 1 15:28:13 GMT 2008


On Sat, 2008-05-31 at 18:16 -0400, Tuc at T-B-O-H.NET wrote:
> > That would be --only-write-batch.
>  
> 	Hrm, so it does.... But creates a $FILE.sh filename. Any
> way to prevent that part?

No.  If you don't want the $FILE.sh, just delete it.

> Also, should running it twice in a row
> quickly produce 2 files that should diff the same, or is something
> stored in there that would prevent a diff from being the same?
> (Timestamp, etc)

There is one thing that impedes reproducibility of batch files: rsync
uses the current time as a seed for the delta-transfer algorithm so that
delta-transfer corruptions won't occur repeatedly for the same file.  If
you specify your own seed with --checksum-seed and nothing in the source
or destination changes, then the batch files should be identical.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/rsync/attachments/20080601/cb0b33d5/attachment.bin


More information about the rsync mailing list