Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2009 22:51:14 -0500
From:      LoH <lordofhyphens@gmail.com>
To:        Nerius Landys <nlandys@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Best procedure for full backup of live system
Message-ID:  <4AD69C32.7000601@gmail.com>
In-Reply-To: <560f92640910142042tc46f1e3lb81ac1e4528a44ab@mail.gmail.com>
References:  <560f92640910142042tc46f1e3lb81ac1e4528a44ab@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Take a UFS2 snapshot and then backup the snapshot. A similar approach 
using ZFS  snapshots would also work.

See the handbook for more details.

http://www.freebsd.org/doc/en/books/handbook/backup-strategies.html

Nerius Landys wrote:
> My server is increasingly having important work stored on it, and I
> need to start taking backups of a lot of directories, especially
> /home, /opt, /etc, /usr/local/etc, and maybe others.  The ideal backup
> (and what I've done in the past) is to take a full low-level dd image
> of the disk while the system is down (this is easy to do in a
> situation where you have dual boot).  Or, since the output of dd would
> take up tons of space and would only be usable on an identical hard
> drive, use "dump" to take the backup while the machine is turned off
> (again easy to do on a dual boot).  But now, I cannot bring down the
> machine.  My plan is to do a tar gzip of / on the fly, and pipe that
> to ssh (remote machine).  However, the system is live, and files will
> be in the progress of changing.
>
> My question is, what is the recommended procedure of taking a full
> backup on a live system?  Ideally, if my hard drive were to crash, I
> would like to have such a backup so as to make it possible to copy
> over the entire backup to a new identical harddrive without doing any
> reinstall or configuration.  Should I use tar/gzip?  dump?  What exact
> command should I use?  I guess I'll back up all of / including system
> files, because there is not too much data.  I will be piping the
> output to ssh.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>   




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