Does image-saving rewrite the entire file or only the altered part?

Does image-saving rewrite the entire file or only the altered part?   04 May 2026, 01:33

When I set the software to save the RAMdisk to an image either on shutdown or on a timer, does it re-write the entire file if only part of it has changed?

For example, there's a 2GB SQLite database file in my RAM drive. Part of it has changed, but 99% of the file is unchanged. Will the entire file be re-written to my SSD, or only the changed portion?

Thank you.
SoftPerfect Support forum - Andrew avatar image

Re: Does image-saving rewrite the entire file or only the altered part?   04 May 2026, 09:00

Only the changed blocks are written to the image file, not the entire file.

Additionally, the image files are sparse, meaning they only occupy disk space for the portions that have actually been written.

Re: Does image-saving rewrite the entire file or only the altered part?   04 May 2026, 23:00

Great, thank you! Then I can backup the database to disk regularly without worrying about SSD wear.
SoftPerfect Support forum - Andrew avatar image

Re: Does image-saving rewrite the entire file or only the altered part?   05 May 2026, 14:02

That is correct: SSD wear would be minimal.

However, it is worth noting that a database typically performs random I/O, whereas periodically writing an image (snapshot) of the database is usually sequential. If both processes run concurrently (i.e. the database is being written to while the snapshot is being taken), there is a small risk that the snapshot could capture a partially updated state, resulting in an inconsistent image.

This risk is reduced if the database uses write-ahead logging (WAL), since WAL helps ensure transactional consistency and makes it possible to recover a consistent state even if a snapshot is taken during active writes.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********  **      **        **  **         ********  
    **     **  **  **        **  **    **   **     ** 
    **     **  **  **        **  **    **   **     ** 
    **     **  **  **        **  **    **   ********  
    **     **  **  **  **    **  *********  **        
    **     **  **  **  **    **        **   **        
    **      ***  ***    ******         **   **        

Message: