Backup and Rollback Functionality

Comments

4 comments

  • Avatar
    BitRock support

    Hi Jake,

    Unfortunately it's not possible to know beforehand which files will be backed up. However, if you set the overwritePolicy to `always` only the older files will be overwritten and backed up. If you enable <enableRollback> and an upgrade installation fails the files that were overwritten will be restored to their previous state.

     

  • Avatar
    Jake

    Hello,

    Can you explain a bit more about this overwritePolicy as I am still confuse. Forget about rollback or backing up. If you just install a package like normal with the same files and folder, does the files/folder get overwrite IF we still the overwritePolicy to "OnlyIfNewer"? What about "Always"? I tried both method and my files always get overwrite. I am getting mixed answered from multiple posts...

  • Avatar
    BitRock support

    The overwritePolicy can have the following values:

    always : an existing file on the disk will always be overwritten.
    never : an existing file on the disk will never be overwritten.
    onlyIfNewer : an existing file on the disk will only be overwritten if it has an older timestamp than the file being installed.

    You can find more information about this subject in the following section of our manual:

    https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_updates

  • Avatar
    Jake

    Thank you. I believe it was my mistake previously as I input the wrong overwrite value.

Please sign in to leave a comment.