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.
| Client Key: A2a9SfT4NeFBl6df5cu42 | |
| API Key: mnqWGdu4OfLBwwJPee6cpjkeY70qv9mKicqZYvtHJ |
| #!/bin/bash | |
| echo "Select on option:" | |
| echo "1) Set up new PoPToP server AND create one user" | |
| echo "2) Create additional users" | |
| read x | |
| if test $x -eq 1; then | |
| echo "Enter username that you want to create (eg. client1 or john):" | |
| read u | |
| echo "Specify password that you want the server to use:" | |
| read p |
| 1- create | |
| gpg --gen-key | |
| 2- list | |
| gpg --list-keys | |
| OR | |
| gpg -k | |
| Above command will show the key from the public keyring. To view the secret key ring, use- gpg --list-secret-keys (OR gpg -K) | |
| 3- export | |
| To send your public key to a correspondent you must first export it- | |
| gpg --output <public-gpg-key.gpg> --armor --export [email protected] |
| # Install LAMP stack - Apache, MySQL, PHP | |
| # as per http://fideloper.com/ubuntu-install-php54-lamp and/or http://fideloper.com/ubuntu-12-04-lamp-server-setup | |
| sudo apt-get update # Update package repositories | |
| sudo apt-get install -y git-core wget vim curl build-essential python-software-properties zsh # Install basics | |
| sudo add-apt-repository -y ppa:ondrej/php5 # Add repository for php5.5 and Apache 2.4 | |
| sudo apt-get update # Update package repositories again after adding repository | |
| sudo apt-get install -y php5 php5-mcrypt php5-gd php5-curl php5-mysql # Install PHP and common modules | |
| sudo apt-get install -y apache2 libapache2-mod-php5 # Install Apache2 | |
| sudo apt-get install -y mysql-server # Install MySQL |
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/bash | |
| # | |
| ## redis backup script | |
| ## usage | |
| ## redis-backup.sh port backup.dir | |
| port=${1:-6379} | |
| backup_dir=${2:-"/data/backup/redis"} | |
| cli="/usr/local/bin/redis-cli -p $port" |
| #!/usr/bin/python | |
| # Modified by Travis Lee | |
| # Last Updated: 4/21/14 | |
| # Version 1.16 | |
| # | |
| # -changed output to display text only instead of hexdump and made it easier to read | |
| # -added option to specify number of times to connect to server (to get more data) | |
| # -added option to send STARTTLS command for use with SMTP/POP/IMAP/FTP/etc... | |
| # -added option to specify an input file of multiple hosts, line delimited, with or without a port specified (host:port) |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |