Backing up freebsd to 1 file?

Sergio de Almeida Lenzi lenzi.sergio at gmail.com
Sun Apr 18 14:37:10 UTC 2010


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



More information about the freebsd-questions mailing list