You are hereLinux Administration / Virtual Servers and Services
Virtual Servers and Services
Anything related to managing public-facing servers.
Copying a Virtual Machine lv or Partition Over SSH
Copying a Logical Volume or Partition over SSH
This should only be attempted on either a snapshot lvm volume, or an unmounted hard drive partition!
Using ssh and dd you can copy any LVM or (unmounted) hard drive partition over the internet to a new machine easily. You can do a "push" or "pull" copy. Here's a "push" copy:
dd if=/dev/vg0/partition-snapshot bs=1k |
ssh remotehost dd of=/dev/vg0/partition-destination bs=1k
Recipes for Redirection, Apache and Javascript Examples
The best way to redirect a page is to use Apache's mod_rewrite. Notoriously cryptic it is, but it's fast and not too hard to figure out for basic things. Here's an example mod_rewrite to redirect http to https. Put it in your apache config preferably, or your .htaccess file if you can't modify your config directly.
Avoiding Network Solutions Transfer Dirty Tricks
Ever try to transfer a domain off of Network Solutions before it expires? Don’t do it until you read this and avoid my mistake. Here’s the process.