Step between --dry-run and running?

Matt McCutchen matt at mattmccutchen.net
Sun Jun 1 17:32:17 GMT 2008


On Sun, 2008-06-01 at 13:18 -0400, Tuc at T-B-O-H.NET wrote:
> > 
> > On Sat, 2008-05-31 at 18:16 -0400, Tuc at T-B-O-H.NET wrote:
> > > > That would be --only-write-batch.
> > > =20
> > > 	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.
> >
> 
> 	It needs to be able to write it first......

Right...

> FreeBSD:
> 
> himinbjorg# touch /dev/null.sh
> touch: /dev/null.sh: Operation not supported
> 
> 	Not so good, but......
> 
> Linux:
> [root at ports ~]# touch /dev/null.sh
> [root at ports ~]# ls -l /dev/null.sh
> -rw-r--r--  1 root root 0 Jun  1 13:13 /dev/null.sh
> 
> 	Thats ok... The first system I need to
> implement it on is a Linux, so I guess it won't be an
> issue, but the next is a FreeBSD.. Maybe if I just do :
> 
> himinbjorg# ln -s /dev/null b
> himinbjorg# ls -l b
> lrwxr-xr-x  1 root  wheel  9 Jun  1 13:16 b -> /dev/null
> himinbjorg# cat /boot/kernel >b
> himinbjorg# ls -l b
> lrwxr-xr-x  1 root  wheel  9 Jun  1 13:16 b -> /dev/null
> 
> 	That way its not inside the /dev directory...
> I don't know if rsync does anything special with the
> file presented in --only-write-batch, but if it just
> opens for write, then shouldn't be an issue.

That's precisely what I would have suggested.  Rsync just opens the
batch file for writing.

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/d4cba819/attachment.bin


More information about the rsync mailing list