

这么大,Gmail邮箱不支持的,发送到邮箱也超慢的。















原帖由 Godaddy 于 2009-10-2 20:26 发表
[root@localhost ~]# cat lftpbak.sh
#!/bin/bash
/usr/bin/lftp -u username,password 222.xxx.xxx.222 -e "put /root/backup-$(date +%m%d%Y).sql;exit"
把这个放入crontab的命令里
0 4 * * 0 /root/lftpbak.sh ...

原帖由 wz4705 于 2010-1-26 12:11 发表
DiaHosting VPS centos 5 系统
备份成功,应该是系统差别,完全照搬并不行,写下总结一下自己的。
编辑crontab命令用:crontab -e
etc/crontab 貌似系统的
crontab里要加sh,不然不执行
00 00 * * * sh /home/website/autom ...
搞明白就好了。原帖由 Godaddy 于 2009-10-2 20:26 发表
[root@localhost ~]# cat lftpbak.sh
#!/bin/bash
/usr/bin/lftp -u username,password 222.xxx.xxx.222 -e "put /root/backup-$(date +%m%d%Y).sql;exit"
把这个放入crontab的命令里
0 4 * * 0 /root/lftpbak.sh ...
原帖由 wz4705 于 2010-1-26 12:11 发表
DiaHosting VPS centos 5 系统
备份成功,应该是系统差别,完全照搬并不行,写下总结一下自己的。
编辑crontab命令用:crontab -e
etc/crontab 貌似系统的
crontab里要加sh,不然不执行
00 00 * * * sh /home/website/autom ...
| 欢迎光临 全球主机交流论坛 (https://mjj.022333.xyz/) | Powered by Discuz! X3.4 |