yes | cp -riP /home/leno/.[^.]* /backup/leno/
-R, -r, --recursive
copy directories recursively
-i, --interactive
interactive, prompt before overwrite
-P, --no-dereference
never follow symbolic links in SOURCE
.[^.]*
any file and directory start with . but not ..
Wednesday, August 20, 2008
Subscribe to:
Posts (Atom)