每隔7天,该脚本会合并一周的备份(完整和增量),并将它们发送到FTP服务器,问题是我想要在FTP上传完成后从我的备份目录中删除文件,但我不能这样做,直到我知道文件已成功上传。#This is the FTP servers host or IP address.PASS=password #This is the password for the FTP user.ftp -inv $HOST << EOF cd
所以ftp_put会说文件上传成功,但是如果我检查服务器没有找到文件,我已经检查了chmod权限,他们是777。($ftp_server) or die("could not connect to $ftp_server");if(@ftp_login($conn_id, $ftp_username$uploadedfile;
ftp_put($conn_id, $remote