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.
#!/usr/bin/zsh | |
mkdir rg-install | |
cd rg-install | |
wget http://pkg.cloudflare.com/dists/xenial/railgun/binary-amd64/Packages.gz | |
gunzip Packages.gz | |
wget "http://pkg.cloudflare.com/${$(cat Packages | grep Filename:)//Filename: }" | |
ar -x *.deb | |
tar xvf data.tar.xz | |
rm -rf /usr/local/railgun | |
mkdir -p /usr/local/railgun |
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion "0.7.1.201405082137" | |
reportsDir = file("$buildDir/intermediates/test") | |
} | |
// Taken from https://blog.gouline.net/2015/06/23/code-coverage-on-android-with-jacoco/ | |
project.afterEvaluate { | |
// Grab all build types and product flavors | |
def buildTypes = android.buildTypes.collect { type -> type.name } |
stages: | |
- build | |
- test | |
- deploy | |
variables: | |
GIT_STRATEGY: clone | |
cache: | |
key: ${CI_PROJECT_ID} |
#!/system/bin/sh | |
# log -t IPTABLES -- $@ | |
# iptables -w -t mangle -A INPUT -i tun0 -j MARK --set-mark 0x3006a | |
IPTABLES="/system/bin/iptables.oem iptables" | |
need_arg=0; | |
last_cmd=""; | |
IIF="" |
#!/bin/bash | |
# | |
BACKUPDEST="$1" | |
DOMAIN="$2" | |
MAXBACKUPS="$3" | |
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
exit 1 |
#!/bin/bash | |
# | |
# vlmcsd - this script starts and stops the vlmcsd-server daemon | |
# | |
# Run level information: | |
# chkconfig: 2345 99 99 | |
# description: KMS Emulator in C | |
# processname: vlmcsd | |
# Source function library |
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.
#!/usr/bin/env python | |
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
# Written by Nathan Hamiel (2010) | |
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
from optparse import OptionParser | |
class RequestHandler(BaseHTTPRequestHandler): | |
def do_GET(self): |