Rollback feature


(autjoe) #1
  • Can rollback be set for universal or local config?  Would Matrix log every version to all assets or can it be set to log just those assets within a sub-site?- When turn on the rollback, does it always require a great amount of disk storage?
    - What data will be captured in the log file?
    - Would it be possible to enable rollback and capture a version but then turn off version capture but keep the ability to reinstate an old version?

    Thanks for your time!

(Edison Wang) #2

- Can rollback be set for universal or local config?  Would Matrix log every version to all assets or can it be set to log just those assets within a sub-site? When you enable Rollback, it will be applied to the whole Matrix system for every asset. You can not just enable for a site.

 

- When turn on the rollback, does it always require a great amount of disk storage?
When you just enable Rollback, it won't immediately require additional disk storage. But over the time, as Matrix writes more and more rollback data for every version of asset, it will consume more disk space compared to a system without Rollback.

 

- What data will be captured in the log file?
Those additional rollback data are mainly just stored in DB tables.

For example, the sq_ast table records the current basic asset information, the corresponding sq_rb_ast table records every version of basic asset information since rollback is enabled.

It's recommended for every major upgrade or in a period of time, you can backup those rollback tables somewhere and then run the script to clean up rollback data, so it won't affect the disk space or performance of your DB.

 

For those file assets like static image files, every version of file is always recorded in Matrix even without enabling Rollback, so it won't require additional disk space for those files. Additional rollback data is mainly

 

- Would it be possible to enable rollback and capture a version but then turn off version capture but keep the ability to reinstate an old version?

First of all, just clarify that Matrix's rollback system only allows you to view the history version of data. You can't reinstate an asset to a specific version, although you can manually copy paste content over if you want.
And yes, you can enable and disable rollback anytime by turning on/off the rollback setting and then running the rollback script to take effect.

You can still jump to a history version of asset even rollback has been disabled now.