Home >Common Problem >There are two ways to dump files
There are two ways to dump files: full dump and incremental dump.
There are two ways to dump files(recommended learning: PHP video tutorial)
The first relatively simple method is called periodic dump (or full dump, periodic backup).
This method is to transfer the contents of all files in the storage to a certain medium, usually a tape or disk, according to a fixed time period.
Advantages:
The file system can reorganize files, that is, all the blocks scattered by the user across the disk are continuously placed together. In this way, access to user files will be much faster when the system is started again.
Disadvantages:
1. The file system may be forced to stop working during the entire transfer period.
2. Transfer usually takes a long time, which depends on the size of the system and the speed of the tape drive.
The other is incremental dump. This technology dumps only the information that has changed since the last dump, that is, only those that were created later or Only changed files will be dumped.
Advantages:
1. The file system can reorganize files.
2. It can meet the requirements of rapid recovery and recovery of the system to the state at the time of the failure.
3. It can be carried out in a shorter time period.
Disadvantages:
Updated files must be marked and the mark removed after dumping.
For more PHP-related technical articles, please visit the PHP Graphic Tutorial column to learn!
The above is the detailed content of There are two ways to dump files. For more information, please follow other related articles on the PHP Chinese website!