I have a program that copies pictures to a web server using rsync.
Typically it will do something like copy IMG_1234.JPG to
server:/www/docroot/YEAR/MONTH/DAY, where the appropriate numbers are
inserted for YEAR/MONTH/DAY. Currently the only way to do this with
rsync is to locally create YEAR/MONTH/DAY and then tell rsync to copy
it. I would like a syntax which would tell rsync to create a specific
remote directory. Something like:
--remote-dir DIR
Before transferring any files, create DIR if it does not yet exist, and
then put all the files requested to be transferred in that directory.

Tim

--
Follow me around the world at [url]http://www.casualhacker.net/blog/[/url]

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]

10-03-2008, 02:20 AM

unix

Re: feature request: create remote directory

On Sun, 2008-09-28 at 19:55 +0200, Tim Newsome wrote:[color=blue]
> I have a program that copies pictures to a web server using rsync.
> Typically it will do something like copy IMG_1234.JPG to
> server:/www/docroot/YEAR/MONTH/DAY, where the appropriate numbers are
> inserted for YEAR/MONTH/DAY. Currently the only way to do this with
> rsync is to locally create YEAR/MONTH/DAY and then tell rsync to copy
> it. I would like a syntax which would tell rsync to create a specific
> remote directory. Something like:
> --remote-dir DIR
> Before transferring any files, create DIR if it does not yet exist, and
> then put all the files requested to be transferred in that directory.[/color]

There is already an enhancement request for this:

[url]https://bugzilla.samba.org/show_bug.cgi?id=4621[/url]

Matt

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: [url]https://lists.samba.org/mailman/listinfo/rsync[/url]
Before posting, read: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url]