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

Re: A-posteriori use of another HDD for the /home/username



On Dec 25, 2009, at 2:40 PM, Merciadri Luca wrote:

> You were right. I just made a diff, and folders beginning with a dot
> were not copied. I was simply using
> $ cp --recursive --update *.* [...] [...]
> 
> What would be these appropriate switches to achieve this? 

I always just say 'cp -a .* <destination dir>' in addition to what you already did to copy (recursively) everything beginning with a period. If there are switches to do this, I've missed them in my reading of the man page.

(Where 'a' here means 'archive mode', not 'all' as it does with ls :-)

It might also help if you think of mounting as "on" rather than "in". Mount doesn't merge 2 directories / filesystems; it 'covers' (replaces) the contents of the destination with the contents of what is mounted. 

-- 
Glenn English
ghe@slsware.com




Reply to: