![]() ![]() When installing Seafile on the backup server, you have to notice: #Data backup server upgradeSince the real-time backup feature is only available for 5.1.0 or later, you also have to upgrade your primary server to version 5.1.0 or later. #Data backup server installYou should install Seafile Pro Edition on the backup server according to this documentation. Back up the tables in the database by mysqldump at regular intervals.Configure Seafile syncing between the primary server and the backup server.The steps to setup the backup server are: We assume you already have a primary server running, and now you want to set up a backup server. In the following discussion, we'll use "primary server" and "master server", "backup server" and "slave server" interchangeably. The latency of backup for these tables doesn't affect the integrity of library data. You can setup a crontab for mysqldump at regular intervals. mysqldump can't back up the database in real time. All other tables in the database (including seafile, ccnet and seahub databases) are backed up with mysqldump.In this procedure, the metadata tables are kept consistent with the seafile-data directory. They're synced to the backup server with Seafile's syncing algorithm. This data is the core data structures of the libraries in Seafile. The seafile-data directory and the core library metadata tables in the seafile database.There are two sets of data that need to be backed up: This is not like the desktop client, which only syncs the latest state of a library. #Data backup server fullThe full history of all libraries will be backed up.So no libraries on the backup server will be in corrupted state (unless they're already corrupted on the primary server). The backup server always keep the database and data directory consistent.This will pick up any legged updates due to glitches in the above real-time sync procedure. Any new or updated libraries will be synced to the backup server. The backup server also checks all libraries on the primary server at a fixed period.With a delta syncing algorithm, this procedure runs quickly and updates the backup server in nearly real-time. Whenever a library is updated, the primary server notifies the backup server to retrieve the changed data.The real-time backup server uses a syncing algorithm similar to the Seafile desktop client to retrieve data from the primary server. This causes some libraries become "corrupted" after restore. In the backup server, some entries in the database may become inconsistent with the data directory. The backup procedure backup database and data directory separately.The latest data written between two backup windows will be lost if the primary server storage is damaged. The backup is done in fixed "backup windows" (once per day or a few times per day).The basic backup procedure described in this documentation has a few drawbacks: Step1: Import MySQL dump file into backup serverīackup is the procedure that copies data from a primary server (which is running production service) to a backup server.īackup is an important procedure to keep data safe. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |