Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,我在这里使用这个脚本来备份我的数据库:
mysqldump -u root -h localhost -pPASSWORD forums | gzip -9 > backup-$(date +%Y-%m-%d).sql.gz
这是cron每天使用的。
cron
但是我每天都需要远程或通过 ftp 程序下载它,所以我在家里的硬盘上有一个物理副本,这可能吗?我知道是这样,谁能告诉我一个快速的方法吗?
mysqldump --user=root --password=PASSWORD 论坛| 压缩包| ncftpput -c -u root -p PASSWORD 76.121.167.17 backup-$(date +%Y-%m-%d-%s).sql.gz 我找到了解决办法,我刚刚打开调制解调器上的端口 21 并打开DMZ 托管 :) 谢谢@MarcB!!!!确保已安装 NCFTP :)