I'm looking for a safe option for taking an image of my machine cuz I'm in a place where I cannot risk trying anything isn't safe and the machine must be up and running. For example, clonezilla looks a good option but I haven't tried it before and I cannot risk booting from a live CD on the same machine.
On my previous post: Take an Image of a Physical Machine using VMWare Converter Standalone - Options diabled
I'm looking for a solution for the issues I came across with VMware Converter or any other suggestions. In this post I want to ask you guys what do you think of the following idea:
Creating a virtual machine of Ubuntu using VMware Workstation.
Backing up my folders of the origial server using backintime-gnome http://backintime.le-web.org/
Restorung these folders on the new VM
Well... You did not like my previous answer? ;)
Still you should provide us with more details about your partitions:
Using complex software doesn't make the process more safe. Linux is about combining the most simple software to do the most complex tasks.
Having that in mind, I show you how to do exactly what you want but with basic software:
fallocate -l (max disk size)G disk.img
fdisk disk.img
kpartx -a disk.img
so we can access the partionsmkfs.ext4 /dev/mapper/loop0p1
mkdir /media/mountpoint
mount /dev/mapper/loop0p1 /media/mountpoint
sudo cp -a (TODO?) / /media/mountpoint/
umount /dev/mapper/loop0p1
kpartx -d disk.img
qemu-img convert -f raw -O vmdk disk.img disk.vmdk
I will go into more detail if you approve you want to try this solution and provide more info on your partitions.
This will only require 2 times the space as your system really occupies, not of the disk size. In the vm you first have to boot a linux live system to install grub and make the disk bootable.