This script will let you make backups of live VMs running on KVM, using libvirt.
The backup job will suspend the VM for the time it takes to copy the RAM to disk.
Credits: Luca Lazzeroni
I've made some minor adjustments.
| #!/bin/sh | |
| ACME=/usr/lib/acme/client/acme.sh | |
| STATE_DIR=/etc/acme | |
| DEPLOY_PATH=/usr/lib/acme/deploy | |
| VERBOSE=0 | |
| DOMAIN="" | |
| while getopts "vd:" opt; do | |
| case "$opt" in | |
| d) |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <mpi.h> | |
| int main(void) | |
| { | |
| MPI_Init(NULL, NULL); | |
| MPI_Comm comm = MPI_COMM_WORLD; | |
| int rank, size, sum = 0,buff; |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <mpi.h> | |
| #define N 50003 | |
| int main(void) | |
| { | |
| MPI_Init(NULL, NULL); |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <omp.h> | |
| int main() | |
| { | |
| int a=2,b=3,c,i; | |
| #pragma omp target data map(to:a,b,c) map(from:i) | |
| { |
| import time | |
| from machine import Pin | |
| class motor: | |
| pins: list[int] = [] | |
| steps: list[list:int] | |
| currentStep: int = 0 | |
| scale: float = 1.0 |
This script will let you make backups of live VMs running on KVM, using libvirt.
The backup job will suspend the VM for the time it takes to copy the RAM to disk.
Credits: Luca Lazzeroni
I've made some minor adjustments.