rsync - can it create directories

Wayne Davison wayned at
Thu Oct 21 06:17:19 GMT 2004

On Thu, Oct 21, 2004 at 01:57:39PM +0800, Jason Potter wrote:
> The directory /mnt/cf/ exists but data/html/interactives does not exist.  I
> want this directory to be created when the file is attempted to be rsynced.

/usr/bin/rsync -avR /data/html/interactives/delta_interactive.swf /mnt/cf

That will do what you want (note the -R).


More information about the rsync mailing list