摘要 |
A method and apparatus for realizing image backup of transaction logs, which are applied to a plurality of servers capable of running the same transaction-log storage system. The method comprises: a first server running a transaction-log type storage system recording a first transaction log generated when a first transaction in the transaction-log type storage system is generated (S100); the first server sending the first transaction log to a pre-set first power failure protection memory, the first power failure protection memory being located at the first server (S200); and the first server performing an image backup on the first transaction log saved in the first power failure protection memory to a second power failure protection memory, the second power failure protection memory being located at a second server capable of running the same transaction-log storage system (S300). The method can recover the first transaction log of the first transaction and perform image backup on same to the second power failure protection memory, and when the first server fails, the first transaction is restored by switching to a second server according to the first transaction log located in the second power failure protection memory. |