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

Re: Moving Debian from one HD to another



David L. Johnson writes:
 > Oops.  Another gotcha.  Is there a flag to cp to preserve links as
 > links?

Sure, try man cp, you should get stuff like:

DESCRIPTION
       This  manual page documents the GNU version of cp.  If the
...
   OPTIONS
       -a, --archive
              Preserve  as  much as possible of the structure and
              attributes of the original files in the copy.   The
              same as -dpR.
...
       -d, --no-dereference
              Copy symbolic links as symbolic links  rather  than
...
       -p, --preserve
              Preserve the original files' owner, group,  permis-
...
       -R, --recursive
              Copy directories recursively.
...

-- 
Raul



Reply to: