logo       

FreeBSD users - patch for cp (adds '-al'): msg#00063

sysutils.backup.rsnapshot.general

Subject: FreeBSD users - patch for cp (adds '-al')

I'm tired of trying to use rsync or gcp (which doesn't like symlinks) to
copy trees of files/directories using hard links, so I added the gcp-ish
options -a and -l.

-a is 'archive' mode, which is just a quick form of -PpR.
-l is 'link' mode, where regular files get hard linked instead of copied.

Patch is against 6-STABLE, but works well on 7-CURRENT as well, and
probably will work fine on 5.x too.

Patch is here (with man page edits):
http://www.googlebit.com/freebsd/patches/cp-patch

cd /tmp/
fetch http://www.googlebit.com/freebsd/patches/cp-patch
cd /usr/src/
patch < /tmp/cp-patch
cd bin/cp
make && make install

Eric


--
------------------------------------------------------------------------
Eric Anderson Sr. Systems Administrator Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise