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.
| # Ubuntu Server Quick Install | |
| # by Dustin Kirkland <kirkland@ubuntu.com> | |
| # * Documentation: http://bit.ly/uquick-doc | |
| d-i debian-installer/locale string en_US.UTF-8 | |
| d-i debian-installer/splash boolean false | |
| d-i console-setup/ask_detect boolean false | |
| d-i console-setup/layoutcode string us | |
| #d-i console-setup/variantcode string | |
| d-i netcfg/choose_interface select auto |
| Как мигрировать docker volume на примере elasticsearch | |
| # Backup | |
| Запускаем елку, и вкидываем в нее данные, хоть через апи, хоть elasticdump | |
| После этого в вольюмах будет много данных (тестировалось на 2 елке) | |
| Смотрим оф руководство https://docs.docker.com/storage/volumes/#backup-a-container |
| #!/usr/bin/perl -w | |
| use strict; | |
| my $remote = 'carol@office.growjob.com::carol/dump'; | |
| my $phase = shift; | |
| if ($phase eq 'backup-end') { |
| # vim: set fileencoding=utf8 | |
| # | |
| # authenticate with zabbix api server, and retrieve monitored hosts | |
| # specification : https://www.zabbix.com/documentation/1.8/api | |
| # | |
| # $ python zabbix_api.py | |
| import requests | |
| from pprint import pprint | |
| import json |
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.
| ## Sublime Text 3 Serial key build is 3176 | |
| > * Added these lines into /etc/hosts | |
| 127.0.0.1 www.sublimetext.com | |
| 127.0.0.1 license.sublimehq.com | |
| > * Used the license key | |
| ----- BEGIN LICENSE ----- |
| #!/bin/sh | |
| # https://stinkyparkia.wordpress.com/2014/10/14/remote-unlocking-luks-encrypted-lvm-using-dropbear-ssh-in-ubuntu-server-14-04-1-with-static-ipst/ | |
| PREREQ="dropbear" | |
| prereqs() { | |
| echo "$PREREQ" | |
| } | |