Create a backup software that supports version management by yourself

Source: Internet
Author: User
Tags website server

Data backup is an old topic, and many large companies also have mature file backup software. However, in the face of the global economic crisis, the company's financial system is tight, and even backup software cannot afford it.

In the past, I used to find some free backup software on the internet, saying that backup is actually file copy. Each time I either overwrite all the last backup software, I cannot trace back. You can either generate a full backup package every time.

This period of time is quite abundant. I want to create a backup system with version management functions and create some opportunities for my laziness.

The first thing to consider is Microsoft's Microsoft sync framework. After two days of msdn, Google, Baidu, and Bing, I finally thought there were too few documents to grasp and had to give up, I decided to re-invent the wheel myself.

To back up the content of a folder, follow these steps:

1. traverse the contents of the folder and generate a new version.

2. Compare it with the content of the last backup to determine which files are to be backed up.

3. Back up a new file. When backing up a file, you must compare it with the file that has been backed up. If the file already exists, only one link is stored in the version file. Avoid repeated storage.

Of course, the core operation is actually copy.CodeOnly account for 0.1% of the system, and the remaining 99.9% are serving it.

I am not talking nonsense. Although the software is not big, it also wastes a lot of effort, but it is too wasteful to use it myself. Now it is used for sharing. Now it is the first version of the software, I hope it will be of some practical value to everyone.

By default, the software does not back up hidden folders and files. As long as there are not too many files, the speed is still relatively fast. I tried several g folders, and the speed was acceptable. However, I couldn't bear the time of checking and backing up files on a website server, such as a 76g file. Therefore, if you have too many files to be backed up, you may want to split them into multiple backup plans and perform them in different headers.

: Defender (full-back) file backup system v1.0beta2

Thank you for your comments and suggestions.

 

 

 

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.