Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'On using rsync: Is CP OK to use on the Mac?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
On using rsync: Is CP OK to use on the Mac?
Authored by: bluehz on Dec 19, '03 08:56:51PM

The man page I have for the apple installed Panther cp is...

-l, --link
link files instead of copying



[ Reply to This | # ]
On using rsync: Is CP OK to use on the Mac?
Authored by: sjk on Dec 19, '03 09:31:09PM
Definitely no "--link" or "-l" options for the default cp command on Panther:

% which cp;
/bin/cp
% man -w cp
/usr/share/man/man1/cp.1
% cp --link
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
% cp -l
cp: illegal option -- l
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory


[ Reply to This | # ]
On using rsync: Is CP OK to use on the Mac?
Authored by: bluehz on Dec 20, '03 08:40:26PM

Hmm that is odd. Well whatever version of cp I have - its actually working pretty good with the above script. Was skeptical and it ain perfect - but its a start. I really like this backup strategy.

CAVEATS: for some reason when rotating - cp refuses to copy symbolic links:

cp: cannot create link `/Volumes/WDC80G/rsync-dailys/sw/hourly.1/src/postgresql-7.3.3-4/postgresql-7.3.3/src/include/parser/parse.h': Cross-device link

When I look at the original file from above... it is a symbolic link. Looks like cp is trying to copy recursively and not allowed or something.

Some application icons are borked when using cp - but the apps function normally.



[ Reply to This | # ]