portainer/api/datastore
Dakota Walsh 958a8e97e9
fix(migration): close the database before running backups EE-3627 (#7218)
* fix(migration): close the database before running backups

On certain filesystems, particuarly NTFS when a network mounted windows
file server is used to store portainer's database, you are unable to
copy the database while it is open. To fix this we simply close the
database and then re-open it after a backup.

* handle close and open errors

* dont return error on nil
2022-07-08 21:05:04 +12:00
..
log fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
migrator feat(internal-auth): ability to set minimum password length [EE-3175] (#6942) 2022-06-03 16:00:13 +12:00
test_data feat(stack/swarm): add prune option for swarm stack redeployment [EE-2678] (#7025) 2022-07-04 11:39:03 +12:00
validate fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
backup.go fix(migration): close the database before running backups EE-3627 (#7218) 2022-07-08 21:05:04 +12:00
backup_test.go fix(datastore): fix test for EdgePortainerUrl [EE-2967] (#6765) 2022-04-14 17:16:10 +03:00
datastore.go
datastore_test.go fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
init.go feat(internal-auth): ability to set minimum password length [EE-3175] (#6942) 2022-06-03 16:00:13 +12:00
migrate_data.go fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
migrate_data_test.go rename output_35 to output_24_to_latest (#7006) 2022-06-02 11:30:42 +12:00
migrate_dbversion29_test.go fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
migrate_dbversion33_test.go fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00
services.go fix(datastore): export/import the bolt sequence number EE-2451 (#6571) 2022-02-22 09:53:17 +13:00
teststore.go fix(database): db migration improvements EE-2688 (#6662) 2022-04-14 16:25:13 +12:00