[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migrating a VM

Thanks for the answer! These are some pretty solid arguments.

Στις Τρί, 3 Οκτ 2017, 19:56 ο χρήστης Colin Percival <cperciva@tarsnap.com> έγραψε:
On 10/03/17 07:28, Dimitris Maroulidis wrote:
> I have a an ubuntu xenial vm on AWS which I want to migrate to Google
> Cloud, and its root filesystem is backed up daily to tarsnap. How would
> I go about doing that?

Easiest solution is to launch a new VM in GCP and rsync your files across
into a subdirectory; then move things into the appropriate places.  Trying
to do a "bare metal" sync runs into two problems:

1. You need to have "a place to stand" (aka. a running system) before you
can do anything, so you can't copy onto an "empty disk" unless you play
crazy games with booting into memory disks.

2. There are usually subtle differences between how things work in different
clouds, which will have been taken care of in the base OS images for the
platform; you don't want to overwrite those.

I suggest rsync rather than tarsnap simply because there's no need to restore
from a backup if you have the original system still running; rsync will
probably be faster.  But you could extract an archive from tarsnap instead if
you prefer.

Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid

Dimitris Maroulidis <https://www.dimitrismaroulidis.com>
President at Wyse Creative <https://www.wysecr.com>

PGP Key Fingerprint: 0x9A3AF9E170FC870FA3406D0A507892A78ADEC769