Link to home
Start Free TrialLog in
Avatar of Nusrat Nuriyev
Nusrat NuriyevFlag for Azerbaijan

asked on

Recommendation of the software for making binary image backup of FreeBSD server.

Hello,

I have a name alongside with mail server.
I want to make a backup of whole system HDD as a single binary image file.
(let's say microsoft has *.vhd  format, but it's not a good example of simplicity and functionality)
My server has 931 GiB of storage and only 60GiB is used.
So the total image file size should be 60 GiB not 931.
Server OS is running under FreeBDSM 8.3-RELEASE amd64
the filesystem is freebsd-ufs.

Please, make you suggestions.
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

I'd suggest clonezilla: http://clonezilla.org/

It saves and restores only the used blocks on the disc. It does however not create 'one file', you have to zip the files it together. I'm assuming you don't want to 'mount' the image you're getting?
Avatar of Nusrat Nuriyev

ASKER

Thank you, Gerwin. I will review that.
Software MAY contain 'mount' feature. The key point is the reliability.
FreeBSD can be backed up with "tar" or "dump" and nobody does image backup when 1% of storage is used.
Can I easily extract the whole system?
Let's say I have archived with tar.
Then I load LiveCD and extracting whole tar to the / root directory.
What about bootloader?
Can I extract the whole system on other harddrive
a) same model and manufacturer
b) other manufacturer and model.

What pitfalls do you see in the tar way?
Can you tell me how to preserve all permissions while tarring?

What about dump. Which is preferable?
Let's say I have ns1(Name Server) and I want to save everything and later, extract after a week the older version?
Can tar or dump accomplish this task? What are performance considerations?
Also, that's 6% not 1%.
You need to install FreeBSD of similar version (i.e 8.x, 9.x or 10.x) for bootloader and partitioning.
Then extract tar file (remember to use "p" flag to tar to keep permissions)

Nameserver configuration file backup is insignificant compared to dumping whole system, or even whole disk.
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
(remember UFS->UFS2 switch, and now ZFS etc)

I don't get this part.
FreeBSD's major releases make major changes, so CloneZilla has to adapt, e.g old CloneZilla will have no idea if it faces UFS or UFS2 or ZFS...
Latest version is the way to go.
Clonezilla will use dd to image if it doesn't recognize the file system
It can recognize UFS2 as being UFS1 and do something kind norton ghost does with unix.