Difference between revisions of "Velero backup create"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  [[velero backup]] create mynewname-backup --include-namespaces mynamespace
 
  [[velero backup]] create mynewname-backup --include-namespaces mynamespace
  
=== Filter by namespace ===
+
=== Create backup of namespace ===
 
  velero backup create mynewname-backup [[--include-namespaces]] mynamespace
 
  velero backup create mynewname-backup [[--include-namespaces]] mynamespace
  

Revision as of 11:36, 5 February 2024

 velero backup create --help (https://velero.io/docs/main/backup-reference/

Create a new backup

velero backup create mynewname-backup --include-namespaces mynamespace

Create backup of namespace

velero backup create mynewname-backup --include-namespaces mynamespace

Filter by app

velero backup create my-nginx-backup --selector app=nginx

Outputs

velero backup create yournamespace --include-namespaces yournamespace
Backup request "yournamespace" submitted successfully.
Run `velero backup describe yournamespace` or `velero backup logs yournamespace` for more details.
velero backup create mybackupName --include-cluster-resources=true --ordered-resources 'pods=ns1/pod1,ns1/pod2;persistentvolumes=pv4,pv8' --include-namespaces=ns1
velero backup create mybackupName --ordered-resources 'statefulsets=ns1/sts1,ns1/sts0' --include-namespaces=yournamespace
velero backup create mytest
Backup request "mytest" submitted successfully.
Run `velero backup describe mytest` or `velero backup logs mytest` for more details.

Errors

velero backup create
An error occurred: a backup name is required, unless you are creating based on a schedule

Related

See also

Advertising: