I am trying to write a site deploy script that will copy files like so:
SOURCE
.
..
src/
html/
DEST
.
..
src/
html/ -> /var/www/ftproot/mysite
I want the files in SOURCE html to go to DEST /var/www/ftproot/mysite.
The script was:
cd SOURCE
cp -Rf * DEST
Every time I run the script, I get this error:
cp: cannot overwrite non-directory 'html' with directory `html'
From this, I deduce that cp cannot automatically copy files into DEST when DEST has symbolic links.
Notes:
Following the cp manual, I set
POSIXLY_CORRECTto 1. This doesn't work.I had to link site
htmltoftproot/mysiteand not vice versa because the ftp users have weird access modes.This guy modified
cpsource code and recompiled it. I don't want to do that to a production server.
Any ideas on how to solve this?


lwhenls -l) 2. Ubuntu 10.04 server 3. Not safe to assume that – est Jan 14 at 3:40