db_curruption
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| db_curruption [2022/10/19 14:01] – admin | db_curruption [2022/10/19 14:12] (current) – admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| If your interface is giving you an error like | If your interface is giving you an error like | ||
| + | |||
| + | {{: | ||
| This can be solved as follows: | This can be solved as follows: | ||
| - | *Method 1* | + | **Method 1** |
| + | |||
| + | UrBackup Server creates nightly backups of its database per default. If the restore procedure fails you can restore those. Restoring your backup database found in the folder ' | ||
| + | |||
| + | Steps: | ||
| + | |||
| + | | ||
| + | |||
| + | Create a backup of the damaged database files. Delete all files belonging to the databases: | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | (rm backup_server*) | ||
| + | |||
| + | Copy the files from the urbackup folder in the storage directory (backup_server.db and backup_server_settings.db) and start UrBackup Server. | ||
| + | |||
| + | |||
| + | **Method 2** | ||
| + | |||
| + | stop the UrBackup Database with | ||
| + | |||
| + | | ||
| + | |||
| + | Assuming you are using SQLite do the following: | ||
| + | |||
| + | | ||
| + | |||
| + | Now you can e.g. get a list of existing tables: | ||
| + | |||
| + | | ||
| + | |||
| + | Make sure, that UrBackup server is not running. The following command enables a more efficient (for single users) journal mode for the database: | ||
| + | |||
| + | | ||
| + | |||
| + | You could check the integrity of the database with: | ||
| + | |||
| + | | ||
| + | |||
| + | You can defragment the database (maybe this also fixes integrity issues) with: | ||
| + | |||
| + | | ||
| + | |||
| + | One way to repair the database is often to export and import the database. That is: | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | |||
| + | .exit | ||
| - | Restoring your backup database found in the folder ' | + | Delete file backup_server.db. |
| - | *Method 2* | + | |
| + | .read export.sql | ||
| + | In most cases that should solve your issue. | ||
| \\ | \\ | ||
db_curruption.1666180910.txt.gz · Last modified: 2022/10/19 14:01 by admin
