View Single Post
Old 12th April 2006, 02:34
danf.1979 danf.1979 is offline
Senior Member
Join Date: Dec 2005
Location: Chile
Posts: 247
Thanks: 4
Thanked 3 Times in 2 Posts
Send a message via MSN to danf.1979

Ok. So, this file is in /tmp/:
So the following line works:
caselog("cp -f existing_db.sql /tmp/existing_db_".date("m_d_Y__H_i_s", $current_date).".sql", $FILE, __LINE__,"copied existing_db.sql to /tmp/existing_db_".date("m_d_Y__H_i_s", $current_date).".sql"
Could it be the -f option?
I read in man cp:
-f, --force
if an existing destination file cannot be opened, remove it and
try again
Could that be why I can't find anywhere the existing_db.sql file?
Reply With Quote