Ubuntu uses LFTP and cRON to automatically back up data to the FTP server every day.
Source: Internet
Author: User
The lab bought a new FileServer for backup. a student's hard disk in the lab broke down a few days ago, so I also set up the automatic backup function. The first thing to do is to see what type of FileServer is. In fact, if FileServer is built using the UbuntuLinux system (with ssh), it can be directly implemented using rsync. The lab bought a new File Server for backup. a student's hard disk in the lab broke down a few days ago, so I also set up the automatic backup function.
First of all, we need to see what type of File Server is. In fact, if File Server is built on Ubuntu Linux (with ssh), it can be directly implemented using rsync.
However, if the File Server is a common FTP, LFTP is a good choice. there are some examples of LFTP in Chinese on the Internet for reference. In fact, I only use the mirror function.
The above command line means to execute the command using LFTP at every day and save the executed message to tmp/cron. log (this file has been created in advance ).
OK! In this way, your system will automatically back up files to the FTP File Server every day.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service