After PLM starts, if the last backup time was more than one day ago, it will automatically back up the data. The default folder for storing backup data is "backup\##" under the installation folder, where ## is the day of the current month. For example, if the date is March 21, it will back up to "backup\21", and the backup file name will be bk.zip, retaining at most the previous two backups, bk1.zip and bk2.zip.
The main part of the backup is the *.dbt database files under the db folder. In addition, the configuration and script files under folders like config/script/scraper/language/home are also backed up. Users can edit the [Settings] section of plm.ini and set "BackupMasks=*.ini;*.json;*.xml;*.yaml;*.conf;*.cfg;*.pas;*.py;*.lua;*.js;*.htm;*.html;*.css" and "BackupDirs=db;config;language;script;home;aria2;wizard;scraper;web" to specify other extensions and folders to be backed up.
You can specify a "Double backup path" in the "System" configuration under the "Settings" menu to copy a second copy to that folder as well after each backup is completed (also generating date subfolders), to achieve the purpose of double backup.
You can click the "Data" menu and select "Backup" to perform a manual backup, whose logic is the same as automatic backup. During backup, PLM will ask whether to reorder the numbering. If so, the sequence numbers of all files will be reordered according to the order of the directory where the file is located, which will appear neater, but may affect some configurations that depend on the original file ID.
In case of database corruption caused by various reasons (such as power outages), PLM will detect whether the amount of data is consistent with the last use each time it starts. If it is inconsistent, it will prompt that the data is corrupted. In the best case, it will try to use the last backup file in the same directory to restore. If it fails, manual restoration is required.
Users can select "Restore" from the "Data" menu to manually restore data, and select the appropriate bk*.zip to restore. The backup information will be displayed during restoration, so please use it with caution.
In extreme cases, if the user loses all data but the video entity files are intact, PLM can be reinstalled and imported. PLM will attempt to load as much of the previously saved information as possible from the .nfo files.