This article will first make an inventory of commonly used WeChat backup schemes, and then focus on the file structure of the computer version of WeChat, the contents that can be cleaned, the files that must be retained, and the precautions for backup.
For many people, WeChat for Windows (hereinafter referred to as WeChat for computers) is the most important desktop software besides browsers. However, WeChat does not have its own backup function. Misoperation, system reinstallation and unknown flash back may lead to the loss of chat records. However, there is not much content about the computer version of WeChat on the network, leading many people to ask for help. I hope this article can help you a little.
make complaints
WeChat may be the app that receives the most "greetings" every day on the earth. What everyone complained about was not WeChat technology, but attitude. After all, "people will naturally adapt to me, why should I change?" is already a well-known problem. The technical team of WeChat, even with half of the efforts of the QQ team, will improve the living standards of hundreds of millions of people immediately. In the absence of competition, an app that does not want to make progress has become a national software, and has become an indispensable tool for more than one billion people every day. To put it mildly, it is a national tragedy.
If WeChat didn't do so * *, most people might not realize the importance of backup. The signature changes and iOS bugs encountered during Android automatic update may cause WeChat and chat data to reset to zero together. An accidental login failure of the computer version of WeChat may also result in the loss of chat records for several weeks.
WeChat is not only a "small and beautiful" compression tool that highly compresses images/videos, but also a file transmission size limit (the new version has finally been extended to 1GB for a single file), a memorable image and video compression (the maximum size of video files is 100MB), and a computer version applet that cannot adjust the size of the window When the PC version and mobile version chat records cannot be merged, various multi choice restrictions, slow and single backup transmission, incomplete and backward functions, and a lot of other problems have not been solved, WeChat updates come from emoticons and PC version friends circle, and a backhand good guy.
Backup scheme
Ranking of several common WeChat backup schemes:
The best backup solution is to backup from the mobile phone to the computer. It can be overwritten, updated and incrementally merged for many times, and only a few core files will be generated to facilitate management;
The second level is the app backup function provided by the domestic mobile phone system, which also generates only a few large files to facilitate management and backup, but can only be performed between the same brand mobile phones; Approaching methods include iTunes backup of iOS devices, but it will generate a large number of fragmented files, which is slow.
The last is the migration of chat records between mobile phones, which can cross Android and iOS platforms, but the files are fragmented and slow. They can only be stored in mobile phones, and management and backup are troublesome.
In addition, there are PC/Mac tools such as WX Backup, which ultimately output chat records into html web page format through non encrypted iTunes backup of Apple iOS devices, and achieve the effect of cross platform browsing mobile phone backup in a curve saving way. With its own timeline, the experience is better than WeChat itself ↓
Some PCs will encounter the problem of unable to add paths. You can cut the backup of iTunes from C: Users user name AppData Roaming Apple Computer MobileSync to the desktop, and then add it manually. However, the current PC version has a bug of "the given keyword is not in the dictionary", too many files are generated, multiple selection cannot be recovered, the folder is not named by WeChat nickname, and there is no search function, which can only be repaired by the developer.
Common chat data loss recovery methods
In addition to the iPad version, the Windows version is a common WeChat client with the most incomplete functions and the least human rights. The computer version does not have its own message backup function, and the chat data and mobile version are isolated, so they cannot be backed up, restored, or viewed each other, so the computer version of WeChat can never be used as the summary source of WeChat backup (at least before the major revision).
Once the phone is lost or the app loses important chat records, the chat data stored on the computer version of WeChat will become a lonely book. When many people are forced to study the computer version of WeChat, they will find that their file architecture is incomprehensible, and they are confused about backup and recovery.
The following methods can be used to try if the chat data is lost in recent days, months (depending on the size of the recent chat data), or completely lost. The official WeChat repair method docs.qq.com/doc/DS0JqY1FEVmVnSWdB is summarized as follows:
Exit and close the computer version of WeChat, back up "All Users config", "User Name config and Msg folder", just in case.
Go to the "WeChat Files User Name Msg" folder, find files with names like "XXX.db_Uncategorized xxxxxxx" and "XXX.db_SQLITE_NOTADB xxxxxxx" (they are the original chat database files, which were renamed due to an unexpected exit), and manually modify the file names to remove the added suffixes (delete the generated files with the same name before renaming).
Go to "WeChat Files User Name Msg Multi or Msg Multi bak" and find a file with a file name similar to "MSG number (numbering from 0) _ a large number". For example, rename the file "MSG0_1625828833. bakdb" to "MSG0. db". Determine whether this is our goal according to the modification time and size of the file.
After renaming and modifying similar files, log in to WeChat again.
Data structure, purpose and significance of WeChat in computer version
Take the WeChat 3.3.0 for Windows version at the deadline as an example (the media file location of the old version of WeChat is slightly different). If the version is too different, the description and processing methods may change. This is only for reference. In the "Settings - File Management" of WeChat for PC version, you can view and modify the saving location of WeChat data.
The directory "WeChat Files/WeChat Name" contains:
All Users: Config folder and user avatar. The core of the config folder is config.data, which records the login information. Without it, you have to scan the code to login again. The avatar and. ini file (configuration information) are not important files. Login will generate them again. In case of login failure or flashback, duplicate avatars may be generated, and a large number of duplicate avatars may be accumulated after a long time.
Applet: Applet directory. Each time you open an applet, a folder similar to wxe73c2db202c7eebf will be generated. Inside are ". wxapkg" files and library files of small programs, most of which are several MB in size. Even when the applet is running, it can be deleted, and will be automatically downloaded when it is opened next time.
"WeChat" name folder: The directory structure of different versions has changed, plus the interrupt file generated by accidental exit, so if the WeChat computer version is used for a long time, the folder will be very messy.
In the WeChat folder, the purpose of each folder is as follows:
Applet: It is also the folder of the applet. This time, it is used to store configuration records and other files. The files in it are numerous and fragmented. If deleted, the applet without cloud synchronization will lose its local settings and configuration records.
ResUpdateV2: The function is unknown, and can be deleted during operation. There is no impact found for the time being, and it is automatically regenerated without change.
Backup and BackupFiles: All are related to backup. BackupFiles store the backup from the phone to the computer. Each phone has a unique folder.
BackupFiles folder structure ↑
Backup.db: Database file, boot of backup data. The data of "first time, last backup time, backup time period, chat number" displayed by the backup manager are all in it (if the original BAK_0_MEDIA and TEXT are removed or overwritten by the same name, only the list can be seen, but cannot be recovered);
BAK_0_MEDIA: Chat graphics, audio and video data;
BAK_0_TEXT: Chat text messages;
log: Record files. Every time the phone is backed up and restored, a log.zip file will be generated (girlfriend/wife secretly checks the post, or when restoring the backup, you can check the modification time of the log file if you don't remember which one has been restored). Deleting and retaining logs will not affect data recovery.
For the same mobile phone, every new backup will update all files except the log. The number of "BAK_" suffix ranges from 0 to N, and the maximum size of a single file is 1.99GB (WeChat can actually encapsulate chat data into a single file). The three files need to be matched, and none of them can be missing. Otherwise, you will be prompted "The file has been moved or damaged, and cannot continue". Backup.db-shm and Backup.db-wal temporary files will be produced during backup recovery, and will be deleted automatically after completion.
Config folder : Log in to the file related to chat data configuration, and it is required to restore the old version data:
AccInfo.dat: Account login information. All Users and their own WeChat account have the config folder. The former config.data and the latter AccInfo.dat must be scanned and logged in again if any one is deleted
aconfig.dat、config.data、xxxx .ini: These are very small configuration files.
FileStorage: All cache, emoticons, files, pictures, videos and other files are stored uniformly. Most subfolders place files by month:
cache: Various picture cache during chat;
CustomEmotion: Emoticon package (after Huiyun synchronization and deletion, click to open personal emoticons next time, or click to open a chat window that has used these emoticons, it will be re downloaded and generated). Since 17 years ago, the folder of the author has expanded to 1.43G, 3323 files;
General: There are Emotion icons, high-definition avatars (manually clicking someone's large image) and other files, which are also cloud synchronized;
File: Word, excel, pdf, compressed package and other files transferred;
Video: Video files and their thumbnails;
Image: Picture files, together with thumbnails, are encrypted into dat files (the old computer version WeChat and onenote both save the original pictures, which has privacy risks and embarrassment). The original image can be obtained by editing the file header and modifying the suffix through XOR processing, but it is meaningless to separate the image from the chat content, so the extraction method will not be detailed here;
Temp/TempFromPhone: Temporary documents;
Sns: In it is the cache, which will be regenerated after being deleted. New files may not be generated every time you log in, but each generated file will record the time of a single login (is it a potential job check?);
Fav、PAG: The meaning is unclear.
Msg: Chat data file, the most important folder. Inside is the Multi folder and a bunch of database files with the. db suffix:
Multi: Buffer area for storing recent chat records. If the client is closed unexpectedly (initialization fails during login, etc.), a "bak" folder will be generated, which contains a file similar to "MSG0. db1600310954990. IOerr", and its digital string is the time stamp when the error occurs. MSG0.db and other files are chat caches, generally 60MB in size, used to store recent chat records. Renaming or deleting will result in the disappearance of recent chat and transferred file records (group chat videos, transferred videos, recordings, etc.).
Suffix ". data" file :ABTest、 CheckResUpdate、XLabTest, It may be WeChat test/resource update file, which can be deleted;
Database file with suffix ". db" , the core of which is ChatMsg.db (The ontology of chat data. Without it, there are only list abbreviations, but no content) MicroMsg.db (Without it, you have to reinitialize, and the chat content will disappear.).
To restore chat data, but do not need images and videos, just keep the ChatMsg.db, MicroMsg.db and config folders (the space consumption is reduced by 95.8789415% instantly).
Tips and cold knowledge
Computer version WeChat applet "TNT mode" ↑
Applets can also achieve the effect of TNT, but most of them are too weak and cannot adjust the window size (except for a few such as Didi Taxi);
It is suggested to open the WeChat small account and set it on top to replace the document assistant. In this way, there will be records on both sides, equal to multiple backups;
Don't want to see a circle of friends on the computer? Close the circle of friends on the discovery page of WeChat, and then log in again, the entrance to the computer will disappear (one thousand enemies will be injured, eight hundred will be lost);
Use "Open on PC" in the sharing menu flexibly. When the mobile phone is not convenient for reading articles, share them to "open on the computer". When logging in to the computer version next time, the submitted articles will be opened in batches, which is more suitable for later reading than the favorites that will never be seen again;
If "some people's avatars are lost", click the avatar in the other party's information in the chat window to regenerate it;
After the login fails to flash back, go to modify the suffix as soon as possible FatalErr, _SQLITE_CORRUPT XXXXXXXX,. bakdb and other files. The new message will be recorded in the new file. When the original record is restored, the new chat record will be lost due to being overwritten. The first 10 digits of the string of digits in the file suffix are converted to "Unix timestamp", which is the time of file modification;
The newly created empty word, excel and PPT will be found by WeChat in the computer version and will not be sent (there is more useless knowledge).
Follow our Weibo @ Love Computer
Follow our WeChat official account: playphone
Of course, we also pay attention to our Bilibili account: love computer