Recently, I used the VPS of Buyvm, which is very cost-effective, but because his family is operated by ONEMAN, he is afraid of running away. The loss of money is not important, just a few dollars. What about the data? If it is lost, it will be very interesting. This paper introduces a method that automatically backs up website and database files every day, sends EMAIL to mailbox, uploads website and data and adds files to FTP space, and automatically deletes old backups. First install the EMAIL sending component: yum install sendmail mutt Script Download address: http://down.vpsmm.com/shell/AutoBackupToFtp.sh The script code is as follows (pay attention to modifying the FTP server address, user name and password): #