[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Rsync, how to include ~/.files but not ~/.dirs



On Thursday 25 January 2007 17:52, ][ wrote:
> I should have said I was trying to backup the /home directory, although
> the exclude list hinted so. I was trying to cut the craps, not bring along
> a life long story, but apparently I trimmed too much. :-)

Hi Tong,

There are seldom any dot dirs at other levels.  If it's safe to ignore
dot dirs at all levels you can use:

rsync -a --exclude='.*/' /home/ target

--Mike Bird



Reply to: