First, practical problems
I have a number of servers, each of which has a lot of files to back up, images, audio, video, databases, etc.
It would be inefficient if I were to remotely transfer all these things to another high storage server, such as using SCP commands to make remote copies.
And I have to enter the user name and password of the target server in the process of copy on each server, which is very insecure and tedious.
Second, the solution
Is it possible to create a directory on a customer’s computer like huawei cloud web disk? Once you put the files in this directory, the files will be automatically backed up to the cloud. Working with remote files is no different from working with local files, which makes use of NAS and NFS.
NAS (Network Attached Storage) is a device that is connected to the Network and has the function of storing data. It is a dedicated data storage server. Data-centric, it separates storage devices from servers and centrally manages data to release bandwidth, improve performance, reduce total cost of ownership, and protect investment. The cost is much lower than using server storage, and the efficiency is much higher. At present, the international famous NAS enterprises include Netapp, EMC, OUO and so on.
NFS (Network File System) is a UNIX Presentation Layer Protocol developed by SUN. It enables users to access files on the Network as if they were using their own computers.
Iii. Implementation Plan
As shown in the figure above, the operation process is as follows:
1. On the server to be backed up, create the /backup directory and change the directory name.
2. Use NFS to mount the /backup directory of each server to the NAS storage.
3. Copy the backup files directly to the /backup directory of the local computer.
4. If the NAS storage space is insufficient, you only need to expand the NAS storage space or mount another NAS storage space.
5. To ensure security, I can cancel directory mounting and set NFS access permission after the backup is complete.
5. Design thinking
This scheme can ensure user operation transparency, low cost, error – resistant, and at the same time take into account security, can be at any time backup operations.
If you have a better way, welcome to contact me.