Hi,
As for the destination directory and the backup directory (--backup-dir),
rsync will create the missing subdirectory (one level below the existing
dir only), so yes for /<somedir-exists>/<newdir-with-date>, no
for /<somedir-exists>/<newdir-with-year>/<newdir-with-month>
on january
1st... But if you want this dir to be a symlink, you can't.
Greg
On Fri, Jul 27, 2012 at 7:16 PM, Clint Olsen <clint.olsen at gmail.com>
wrote:
> I've been very interested in these discussions and uses of rsync as a
> "clone" of Time Machine. A couple of things have been keeping me
from a
> fully automated solution. I'd like to eliminate the need for Samba/NFS
> mounts of any kind, because they have proven to be unreliable for me and
> under some operating environments (Cygwin) it breaks --link-dest. In most
> of the articles I've read, a target "date" directory is
created with some
> sort of "latest" symlink for the --link-dest parameter. I can
accomplish
> those tasks via remote ssh commands, but I was hoping there was a better
> way. For example, is there any circumstance where you can coax rsync into
> creating a target directory that's not there already?
>
> % rsync <source> user at
nas::module/<somedir-exists>/<newdir-with-date>
>
> So, newdir-with-date doesn't exist (yet). I would like to have rsync
> create it for me. Is that even possible?
>
> Thanks,
>
> -Clint
>
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20120727/e4289299/attachment.html>