Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2706

Improve databases backup management

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: Not yet scheduled version
    • Component/s: Framework

      Description

      Databases backup are made every hour:

      2021-06-29 11:00:54 79832 139680571688704 INFO     nxdrive.dao.utils  Checking database integrity: PosixPath('/home/tiger-222/.nuxeo-drive/manager.db')
      2021-06-29 11:00:54 79832 139680571688704 DEBUG    nxdrive.dao.utils  Removing old backup /home/tiger-222/.nuxeo-drive/backups/manager.db_1624870853
      2021-06-29 11:00:54 79832 139680571688704 INFO     nxdrive.dao.utils  Creating backup /home/tiger-222/.nuxeo-drive/backups/manager.db_1624957254
      2021-06-29 11:00:54 79832 139680571688704 INFO     nxdrive.dao.utils  Checking database integrity: PosixPath('/home/tiger-222/.nuxeo-drive/ndrive_2c5bb69cd40911eb8c9f3c7c3f24e75c.db')
      2021-06-29 11:00:54 79832 139680571688704 DEBUG    nxdrive.dao.utils  Removing old backup /home/tiger-222/.nuxeo-drive/backups/ndrive_2c5bb69cd40911eb8c9f3c7c3f24e75c.db_1624870853
      2021-06-29 11:00:54 79832 139680571688704 INFO     nxdrive.dao.utils  Creating backup /home/tiger-222/.nuxeo-drive/backups/ndrive_2c5bb69cd40911eb8c9f3c7c3f24e75c.db_1624957254
      

      But if Drive is running days long without doing any database stuff, this only create more work for the OS and for nothing really useful.
      This could be improved by only doing such actions when there is at least one change in the database.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: