Skip to content

Conversation

@acekingke
Copy link
Contributor

What type of PR is this?

/enhancement

Which issue(s) this PR fixes?

Fixes #148

What this PR does?

Summary:

  1. create nfs resouce and nfs service
  2. support backup to nfs and restore from nfs

Special notes for your reviewer?

@acekingke acekingke added the enhancement New feature or request label Sep 24, 2021
@acekingke acekingke added this to the v2.2.0 milestone Sep 24, 2021
@acekingke acekingke marked this pull request as draft September 24, 2021 02:15
@acekingke acekingke force-pushed the backupForNFS branch 2 times, most recently from 24fe030 to 3993290 Compare October 11, 2021 07:47
@acekingke acekingke marked this pull request as ready for review October 11, 2021 07:47
@acekingke acekingke force-pushed the backupForNFS branch 2 times, most recently from 6621a02 to 39f5f36 Compare October 14, 2021 06:07
@acekingke acekingke requested a review from runkecheng October 14, 2021 06:08
@acekingke acekingke marked this pull request as draft March 28, 2022 08:39
@andyli029
Copy link
Contributor

staticcheck Failed.

in.RestartPolicy = corev1.RestartPolicyNever
sctName := fmt.Sprintf("%s-secret", s.backup.Spec.ClusterName)
in.Containers[0].Name = utils.ContainerBackupName

Copy link
Contributor

@andyli029 andyli029 Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete the space.

Copy link
Contributor

@andyli029 andyli029 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add subdir back-nfs in the samples and mv related files into it.

@andyli029 andyli029 requested review from andyli029 and removed request for dingyuan408 and hustjieke April 14, 2022 08:58
@acekingke acekingke marked this pull request as ready for review April 15, 2022 02:25
@acekingke acekingke force-pushed the backupForNFS branch 2 times, most recently from 33b55de to be0f265 Compare April 15, 2022 04:56
Copy link
Collaborator

@runkecheng runkecheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the backup folder cannot distinguish the backup of multiple clusters, Change the name such as <cluster_name>_202241564422.

sh-4.2# ls exports/
backup_202241564422  index.html

sh-4.2# ls exports/backup_202241564422/
backup-my.cnf   ibdata1  performance_schema  sys                     xtrabackup_checkpoints  xtrabackup_logfile
ib_buffer_pool  mysql    radondb             xtrabackup_binlog_info  xtrabackup_info

@acekingke
Copy link
Contributor Author

#232 (comment)
cannot use GetNameForResource, it is MysqlCluster method, can not call in sidecar

@acekingke acekingke force-pushed the backupForNFS branch 3 times, most recently from 9851f02 to 21a5c93 Compare April 15, 2022 08:40
@acekingke
Copy link
Contributor Author

The name of the backup folder cannot distinguish the backup of multiple clusters, Change the name such as <cluster_name>_202241564422.

it has been modified

name: backup-sample
spec:
# Add fields here
image: radondb/mysql-sidecar:latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql57-sidecar:v2.2.0

Copy link
Contributor

@andyli029 andyli029 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge first, optimize further.

@andyli029 andyli029 merged commit 21e0621 into radondb:main Apr 18, 2022
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this pull request Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] Backup to nfs server , restore from nfs server

3 participants