Interface BackupCreator


public interface BackupCreator
Copies config files and dumps the database before an upgrade rewrites anything.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backup(String preInitVersion, Path pathToFile)
    Copies one file into the backup folder for the version being upgraded from.
    void
    backup(String preInitVersion, Config.Database database)
    Dumps the database into the backup folder, using whichever tool the database type needs.
  • Method Details

    • backup

      void backup(String preInitVersion, Path pathToFile)
      Copies one file into the backup folder for the version being upgraded from.
      Parameters:
      preInitVersion - the version the files were written by
      pathToFile - the file to copy
    • backup

      void backup(String preInitVersion, Config.Database database)
      Dumps the database into the backup folder, using whichever tool the database type needs.
      Parameters:
      preInitVersion - the version the files were written by
      database - the database settings