Re: Rsync, how to include ~/.files but not ~/.dirs
][ wrote:
> On Wed, 24 Jan 2007 23:07:43 -0500, Roberto C. Sanchez wrote:
>
>>> Is there any way to tell rsync to backup all the . files under my home but
>>> no any . directories? E.g., .profile in, but .gconf/ & .gnome/ etc out?
>>>
>> Don't use the recursive option?
>
> unfortunately that's not an option. I have to use it. The OP is for
> illustration purpose only.
That's contradicting what you said before. You want to rsync .files, so
just drop the recursive option.
If you want to transfer all non-dot directories, maybe the easiest
solution is to do rsync twice: once recursively without .files and once
non-recursively for .files.
HTH,
Johannes
Reply to: