Version 1 vs 2
Version 1 vs 2
Edits
Edits
- Edit by ericolson, Version 2
- Aug 22 2017 11:57 AM
- ·fixed the order of commands
- Edit by ericolson, Version 1
- Aug 22 2017 11:54 AM
Original Change | Most Recent Change |
Edit Older Version 1... | Edit Current Version 2... |
Content Changes
Content Changes
== Creating a Backup ==
To create a backup of a current working virtual machine (e.g. ecc-a-17), the machine must first be brought down:
```lang=bash
$ sudo systemctl stop hmux@ecc-a-17
```
The logical volume should then be written to a file for ease of transport:
```lang=bash
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 of=/backups/ecc-a-17.dd bs=1M status=progress
```
This can also be done over the network using netcat:
```lang=bash
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 bs=1M | nc hostname.cse.unr.edu 7000 # on the host sending the backup
$ sudo nc -l 7000 | sudo dd of=/pool0/backups/ecc-a-17.dd bs=1M # on the client saving the backup
```
== Restoring from a Backup ==
The process for restoring a backup is more or less the same as creating one but with the arguments just flipped around:
```lang=bash
$ sudo dd if=/backups/ecc-a-17.dd of=/dev/mapper/vg1-ecc--a--17 bs=1M status=progress
```
Or, over the network:
```lang=bash
$ sudo dd if=/pool0/backups/ecc-a-17.dd bs=1M | nc hostname.cse.unr.edu 7000 # on the server containing the backup
$ sudo nc -l 7000 | sudo dd of=/dev/mapper/vg1-ecc--a--17 bs=1M # on the client restoring the backup
```
== Backing up/Restoring Using Multi-cast ==
TBD
== Creating a Backup ==
To create a backup of a current working virtual machine (e.g. ecc-a-17), the machine must first be brought down:
```lang=bash
$ sudo systemctl stop hmux@ecc-a-17
```
The logical volume should then be written to a file for ease of transport:
```lang=bash
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 of=/backups/ecc-a-17.dd bs=1M status=progress
```
This can also be done over the network using netcat:
```lang=bash
$ sudo nc -l 7000 | sudo dd of=/pool0/backups/ecc-a-17.dd bs=1M # on the client saving the backup
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 bs=1M | nc hostname.cse.unr.edu 7000 # on the host sending the backup
```
== Restoring from a Backup ==
The process for restoring a backup is more or less the same as creating one but with the arguments just flipped around:
```lang=bash
$ sudo dd if=/backups/ecc-a-17.dd of=/dev/mapper/vg1-ecc--a--17 bs=1M status=progress
```
Or, over the network:
```lang=bash
$ sudo nc -l 7000 | sudo dd of=/dev/mapper/vg1-ecc--a--17 bs=1M # on the client restoring the backup
$ sudo dd if=/pool0/backups/ecc-a-17.dd bs=1M | nc hostname.cse.unr.edu 7000 # on the server containing the backup
```
== Backing up/Restoring Using Multi-cast ==
TBD
== Creating a Backup ==
To create a backup of a current working virtual machine (e.g. ecc-a-17), the machine must first be brought down:
```lang=bash
$ sudo systemctl stop hmux@ecc-a-17
```
The logical volume should then be written to a file for ease of transport:
```lang=bash
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 of=/backups/ecc-a-17.dd bs=1M status=progress
```
This can also be done over the network using netcat:
```lang=bash
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 bs=1M | nc hostname.cse.unr.edu 7000 # on the host sending the backup
$ sudo nc -l 7000 | sudo dd of=/pool0/backups/ecc-a-17.dd bs=1M # on the client saving the backup
$ sudo dd if=/dev/mapper/vg1-ecc--a--17 bs=1M | nc hostname.cse.unr.edu 7000 # on the host sending the backup
```
== Restoring from a Backup ==
The process for restoring a backup is more or less the same as creating one but with the arguments just flipped around:
```lang=bash
$ sudo dd if=/backups/ecc-a-17.dd of=/dev/mapper/vg1-ecc--a--17 bs=1M status=progress
```
Or, over the network:
```lang=bash
$ sudo dd if=/pool0/backups/ecc-a-17.dd bs=1M | nc hostname.cse.unr.edu 7000 # on the server containing the backup
$ sudo nc -l 7000 | sudo dd of=/dev/mapper/vg1-ecc--a--17 bs=1M # on the client restoring the backup
$ sudo dd if=/pool0/backups/ecc-a-17.dd bs=1M | nc hostname.cse.unr.edu 7000 # on the server containing the backup
```
== Backing up/Restoring Using Multi-cast ==
TBD