summaryrefslogtreecommitdiff
path: root/backup
Commit message (Collapse)AuthorAgeFilesLines
* Fixes permission problem when restoring backupHirotaka Wakabayashi2023-01-271-1/+1
| | | | | | | | | | | | | This PR changes the owner of the file used by the docker container that resets the mysql root password. Original problem is the failure to restore mysql:5.7.x backup. The error occurs because the container process tries to update the file that owned by the others. Story: 2010467 Task: 47017 Change-Id: I3d8ebaac4ee5e13af83c305ce28b51e4442d8c8b
* Improve the detect backup was created when parse logBo Tran2022-01-211-3/+4
| | | | | | Task: #43209 Story: #2009176 Change-Id: I6aff0d185991db77b17a4f23084de6734b2b3a6c
* Add periodic task to remove postgres archived wal filesLingxian Kong2021-07-231-2/+11
| | | | | | | | | | | | * Added a periodic task for postgresql datastore to clean up the archived WAL files. * Added a check when creating incremental backups for postgresql. * A new container image ``openstacktrove/db-backup-postgresql:1.1.2`` is uploaded to docker hub. Story: 2009066 Task: 42871 Change-Id: I235e2abf8c0405e143ded6fb48017d596b8b41a1
* Use bridge network for db containerLingxian Kong2021-06-222-2/+12
| | | | | | | | | - Changed the network mode of database container to "bridge" and exposed the service ports. - Use socket file to connect with the database. - Upgrade the backup container image for postgressql. Change-Id: Id5b119f8a474befc3a2cd6e061bbffc4ae5f7bb6
* Fix restore encrypted backupLingxian Kong2020-10-292-5/+28
| | | | | | | | | | | For the backups created prior to Victoria which may be encrypted, the restore function in Victoria or later release should correctly decrypt the backup data. Backup encryption from Victoria is disabled. Bump the backup docker image tag to 1.1.0. Change-Id: I7abf5563b22ab1914fa355c089a3793da07f2215
* Support mysql 8.0Lingxian Kong2020-10-234-6/+148
| | | | | | | | | | | | | | | | | | | | * MySQL 5.7 and MySQL 8.0 need different percona-xtrabackup package version. Added Percona XtraBackup 8 support for MySQL 8.x backup and restore. * Construct different backup container image names for MySQL 5.7 and MySQL 8.0 based on the default option value. * Two docker images are uploaded for backup/restore: openstacktrove/db-backup-mysql5.7:1.0.0 and openstacktrove/db-backup-mysql8.0:1.0.0. Trove guest agent can automatically choose the approriate one based on the datastore version. * Added option "secure-file-priv=NULL" in MySQL config template to fix https://github.com/docker-library/mysql/issues/541. * Stop using IDENTIFIED BY in GRANT clause (also REVOKE). Starting with MySQL 8 creating a user implicitly using the GRANT command is not supported. Story: #2008275 Task: #41143 Change-Id: Ibdec63324b1b39ba9b8a38dbe529da17bbb06767
* [Backup] Ignore 404 error when deleting swift objectsLingxian Kong2020-09-171-2/+6
| | | | Change-Id: I32c6ad56ebbd77dbafb2f956c78082b944fc5a22
* [Postgresql] Create replicaLingxian Kong2020-09-114-6/+11
| | | | Change-Id: Ia00032074dc44a6fbfc1e2d5ab16d1734a1a732c
* Postgresql: Backup and restoreLingxian Kong2020-09-0712-23/+396
| | | | Change-Id: Icf08b7dc82ce501d82b45cf5412256a43716b6ae
* Improve docker image for database backup/restoreLingxian Kong2020-09-022-24/+35
| | | | | | | | * Decrease the image size by not installing unnecessary packages. * Move the option 'backup_docker_image' to separate database config section. Change-Id: I3362e1f8a7dc21b89c060352f2db2f138c16db07
* Support backup strategy APILingxian Kong2020-07-171-1/+2
| | | | Change-Id: I0ddd7214dae6e29ddfaf045fdb282f4980a8afff
* Datastore containerizationLingxian Kong2020-05-2712-0/+1108
Significant changes: * Using docker image to install datastore. * Datastore image is common to different datastores. * Using backup docker image to do backup and restore. * Support MariaDB replication * Set most of the functional jobs as non-voting as nested virtualization is not supported in CI. Change-Id: Ia9c97a63a961eebc336b70d28dc77638144c1834