备份
$date = date("m-d-Y");
// repeat this command for multiple backups, changing the path - e.g. you can have a backup for email, another for files, etc.
shell_exec("tar cvfz 文件名 目录 --exclude 要去掉的某个目录");
进行复制
shell_exec("cp -r /***/***/public_html/images /***/***/public_html/目录二/images");
正文完