-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VolumeSnapshot support? #81
Comments
VolumeSnapshots are bit more complex than just simple file copying. If you just look for some backup process then local-path-provisioner is just using a directory/path in container - so you can copy fie but it is advised to stop container before file copying to avoid file corruptions, especially if the app stores extra data in memory (such as databases).
Second step could be also done from host side. What do you do in the backup process depends on the use case, this can be something like rsync, copy, rclone.... |
Yeah I understand that implementing the VolumeSnapshot API would involve a lot of work. I'm specifically interested in being able to run tests that use the VolumeSnapshot API. Ideally I'd be able to do this with a KIND cluster and local-path-storage. |
You could try to run different provisioner one provisoner on top of another, if supported :D |
Could this be supported if the backing filesystem on the host is btrfs? |
Have learned a bit more since opening the issue. In particular, stopping/starting the underlying pods is not part of the VolumeSnapshot API. The user is expected to handle all of that, esp if e.g. they're running a database. The VolumeSnapshot API simply tells the storage provider to make a backup of the volume in its current state. So I think adding VolumeSnapshot support may indeed be as easy as creating a tarball or copy of the directory (and then unpacking that to create a PVC from a VS). |
Creating a tarball or copy is not atomic and therefore is not a "snapshot". Instead, a file system with snapshot support needs to be used. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Not stale |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Not stale EDIT: looks like closed by bot are not reopened by bot |
Is it possible to support VolumeSnapshots, e.g. by making a copy of the directory?
The text was updated successfully, but these errors were encountered: