Re: Simple BSD Backup System



John Richards <john.richards280@xxxxxxxxx> wrote:

I am not griping. I think that FreeBSD is great, and I would like to
have the confidence to transfer to it. But until I have a satisfactory
and reliable backup system, that would be rather unwise, don't you
think? - not that I think FreeBSD is unstable, but to guard against my
own clumsy attempts to experiment.

I am not looking for a Partimage CLONE, but for something comparably
easy to use, and which also produces a file of a reasonable size. I am
sorry if you think that is unreasonable.

As somebody already said, (dump | restore) coupled with gzip will do
exactly the same thing as partimage, that is read the filesystem and backup
only the used blocks and compress them. The only problem is to learn how to
use it. The basic usage to dump and restore through a pipe is
dump -0f - / | restore -rf -
Then you can stack all sorts of commands such as gzip, rsh or ssh in the pipe
to put the backup in compressed form on another machine, etc, that is
recover all the functionalities of partimage.
For example
dump -0f - | gzip | ssh myself@some_machine 'cat > backup'
will put the compressed backup of root partition on some_machine.
ssh myself@some_machine cat backup|gunzip|restore -rf -
will restore it.

Don't forget that you can run all those commands from a good live
freebsd cdrom like frenzy(*), and you have all what you need and more.

The only gotcha: dump works only on filesystems, so you have to specify the
filesystem as in fstab here /. And second dump can work for several levels
dumps, here you need the full dump, that is zero level.

(*)http://frenzy.org.ua/eng/
Try it, you will love it. Another lovable tool is qemu to practice
all those commands on virtual machines without risk.


--

Michel TALON
.



Relevant Pages

  • proper use of dump to backup a 5.3 box
    ... complete backup of a freebsd 5.3 box I'm using at home. ... actually execute the dump? ... what would the proper syntax be for doing an incremental dump? ...
    (freebsd-questions)
  • Good FreeBSD 4.x full backup solution
    ... Hi I have a FreeBSD 4.10 server and want to back it up on my PC ... I saw that dump was a good full backup ... My question is will I be able to restore the system while using dump ...
    (comp.unix.bsd.freebsd.misc)
  • Re: backup
    ... >> get tricky if your new system that you need to restore the data to isn't ... >> sized the same as the old and isn't using the same version of dump. ... eg a dump in FreeBSd 3.xx can be restore in FreeBSD 4.xx, ... And, really, for most cases of making a backup against disk failures ...
    (freebsd-questions)
  • Re: Problem with backup
    ... > I have been constantly trying to backup the filesystem and this error ... > I have tried in running these commands, ... > DUMP: ...
    (comp.unix.solaris)
  • Re: continuous backup solution for freebsd?
    ... I think it is a funny historical fact that BSD was commercially licensed way too long to allow Linux to be developed at first place. ... I thought it wouldnt hurt to ask for help if somebody could contact r1soft and perhaps ask a pile of money to develop a driver. ... As a matter of fact the only reason they went with Linux instead of FreeBSD is because they cant get CDP with FreeBSD. ... but r1soft backup can restore a single file at a consistent state without restoring the whole filesystem from a graphical user interface and can restore mysql databases at a table level. ...
    (freebsd-questions)