Backup Server and FTP Settings in Workcube
Backup server and FTP (File Transfer Protocol) are two important concepts that are frequently used to store data safely and access it when necessary. This combination is especially useful when you want to back up important files and transfer data between different devices. Within Workcube, file transfer is made with the backup server information defined via FTP.
What is a backup server?
A backup server is a server where backups of data are kept, used as a security measure against data loss that may occur on the main server. In this way, in case of any problem on the main server, you can access the data and continue the current work without interruption.
What is FTP (File Transfer Protocol)?
FTP is a network protocol used to transfer files from one computer system to another. It is widely used in downloading and uploading files over the Internet. FTP is an ideal protocol for backup operations thanks to its simple structure and reliability.
How to make FTP settings?
The following information is needed when making FTP settings on the backup server:
- Server Address (IP Address): The backup server's location on the internet
- Port: Port number used for FTP connection.
- Username: User name used to connect to the server.
- Password: Password for the username.
First of all, a connection is established with the IP address of the open site and FTP installation is done by running the following commands.
For FTP installation, the following commands must be run respectively.
1. vsftpd packages are downloaded with the apt package manager.
sudo apt update
sudo apt install vsftpd
2. The vsftpd service is started and activated.
- sudo systemctl start vsftpd
- sudo systemctl enable vsftpd
3. Configuration files are backed up.
- sudo cp /etc/vsftpd.conf /etc/vsftpd.conf_default
4. A user is created in the system for FTP. We enter the values between <> correctly as we wish and the username and password are noted.
- sudo useradd -m -d
- sudo passwd
5. Firewall is configured for FTP network traffic. Firewall rules are eventually checked.
- sudo ufw allow 20/tcp
- sudo ufw allow 21/tcp
- sudo ufw allow 990/tcp
- sudo ufw allow 40000:50000/tcp
- sudo ufw status
6. vsftp file is configured. The /etc/vsftpd.conf file is opened on the server. The following lines are edited.
- anonymous_enable=NO
- local_enable=YES
- write_enable=YES
- chroot_local_user=YES
- chroot_list_ena ble=YES
- chroot_list_file=/etc/vsftpd.chroot_list
- pasv_min_port=40000
- pasv_max_port=50000
7. The Linux user created for FTP access is added to the chroot_list_file and vsftp is restarted.
- /etc/vsftpd.chroot_list file
is added and saved. - sudo systemctl restart vsftpd.service
Workcube System Settings
Control Panel > System > General Settings > System Parameter Settings page is entered and ftp information for the backup server is entered in the fields in the screenshot.
- ftp_remotehost: URL of the backup server.
- ftp_username: Created FTP username.
- ftp_active: If we want FTP to be activated, it is marked true.
- ftp_password: FTP user's password.
Feedback
It enables file transfer between servers by connecting to the server via FTP via the interface.