How to roll back database

In this article: What can be done to roll back a database.                
 

Sometimes you might need to return the main or the extra database to a point in time (e.g. a day or a month ago). You can do this on Google Drive and Dropbox (but not on OneDrive or iCloud).
Attention! For Google Drive this method can be used only if Root folder selected in Database location settings

  1. Turn off the cloud sync on all your devices and PCs
  2. Go to Google Drive or Dropbox in a browser
  3. Find SafeInCloud.db file for the main database or SafeInCloud(name).db file for the extra database in the location as defined here: https://safeincloud.ladesk.com/361499-Cloud-database-location
  4. Right-click the file and select Manage versions (Google Drive) or More (3-dots)>Previous revisions (Dropbox)

    Google Drive:
     

    Dropbox:
     

     

  5. Click the required file version from the past and download it (on mobile copy it to the phone's SD card root)

    Google Drive:

  6. Then open SafeInCloud app and restore from the downloaded file via Settings > Databases > (Name of the database) > Restore (on mobile platforms) or Options > Databases > (Name of the database) > Actions > Restore in the menu (on Desktop)

    Mobile platforms:

    Desktop:

  7. Delete SafeInCloud.db file for the main database or SafeInCloud(name).db file for the extra database on the cloud.

    Google Drive:

    Dropbox:

  8. Turn on the cloud sync again to restore the database file on the cloud
  9. Erase data on other devices and restore them from the cloud:

Mobile platforms:

  • The main database: Settings > Erase data

    !NB This action will erase all application's data and settings from your device, including the extra database. This will not erase any data from the cloud. 

  • The extra database: Settings > Databases > (Name of the database) > Delete database > Locally

Desktop:

  • The main database: Tools > Erase data

    !NB This action will erase all application's data and settings from your device, including the extra database. This will not erase any data from the cloud. 

  • The extra database: Options > Databases > (Name of the database) > Delete database > Locally