Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Apr 2010 11:37:03 -0300
From:      Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
To:        freebsd-questions <questions@freebsd.org>
Subject:   Re: Backing up freebsd to 1 file?
Message-ID:  <1271601423.1287.15.camel@localhost>
In-Reply-To: <20100418161015.f20206f0.freebsd@edvax.de>
References:  <4BCB07C0.8010305@sbcglobal.net> <20100418161015.f20206f0.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
I am very happy with the folowing....


Supose that you have mount ANOTHER device on /mnt....

1) mount /dev/xxxx /mnt
2) init 1  (this closes all applications and drop into single user)
3) tar --one-file-system -cvzf /mnt/backup.tar.gz ./ var usr home 
4) umount /mnt
5) exit (reboot from single user to normal operation)
===================================
on restore.......
supose you install a FBSD minimal from the CD/usb.....

1) mount /dev/xxxx /mnt
2) tar -xpvf /mnt/backup.tar.gz -C /
........................   
3) umount /mnt
===========you have restored your system=============

may be some files (sockets...) are not restored but no problem as
they will be created by the time your system boots on.

Sergio




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1271601423.1287.15.camel>