{"action":"opened","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/1691","repository_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io","labels_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/1691/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/1691/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/1691/events","html_url":"https://github.com/kubernetes/kubernetes.github.io/issues/1691","id":189475041,"number":1691,"title":"Wanted Doc: Task: Backup and Restore my PVC","user":{"login":"erictune","id":8105590,"avatar_url":"https://avatars.githubusercontent.com/u/8105590?v=3","gravatar_id":"","url":"https://api.github.com/users/erictune","html_url":"https://github.com/erictune","followers_url":"https://api.github.com/users/erictune/followers","following_url":"https://api.github.com/users/erictune/following{/other_user}","gists_url":"https://api.github.com/users/erictune/gists{/gist_id}","starred_url":"https://api.github.com/users/erictune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictune/subscriptions","organizations_url":"https://api.github.com/users/erictune/orgs","repos_url":"https://api.github.com/users/erictune/repos","events_url":"https://api.github.com/users/erictune/events{/privacy}","received_events_url":"https://api.github.com/users/erictune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T18:52:07Z","updated_at":"2016-11-15T18:52:07Z","closed_at":null,"body":"For all users of PVCs, they would like to know how to backup the data in their PVC.\r\nStatefulSets users in particular will be interested in this.\r\n\r\nI envision that the StatefulSet documentation will include advice on how to \"pause\" your database, and then point to generic PVC documentation which describes how to backup or restore.\r\n\r\nThis issue is a request for the latter: generic PVC-related documentation.\r\n\r\nI imagine that the steps are something like this for backup:\r\n\r\n1. Prereq: you know the name of the PVC that you want to backup.\r\n1. Prereq: your application is \"paused\" and not mutating the storage\r\n   1. for RWO, need to actually terminate the app pods.  No need to document how to do that here.  It is a prereq.\r\n   1. For RWX, can just ensure app is paused as a pre-req.\r\n1. Find the PV that backs this PVC. \r\n1. For GCE PDs\r\n   1. find the GCE PD name that backs this PV\r\n   1. gcloud command to snapshot that GCE PD\r\n1. For AWS EBS\r\n   1. same deal\r\n\r\nRestore would be:\r\n\r\n1. Prereq: you know the name of the PVC that you want to backup.\r\n1. Prereq: you know the name of the snapshot you want to restore to.\r\n1. Prereq: your application is stopped and ready for the storage to change under it.  \r\n1. Verifying Prereqs: how to check that no pod is attached to the PVC currently\r\n1. Find the PV that backs this PVC. \r\n1. For GCE PDs\r\n   1. find the GCE PD name that backs this PV\r\n   1. gcloud command to snapshot that GCE PD\r\n1. For other clouds... etc.\r\n\r\nFor all steps, give example kubectl command, preferably with machine readable output (via grep, -o jsonpath, or whatever).\r\n\r\n"}}
{"actor":{"display_login":"erictune"}}