DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 11th July 2008
mwotsch mwotsch is offline
New User
 
Join Date: Jul 2008
Posts: 3
Default backing up an entire system

Hello!

We run a production server that is of course rather important. The files on it (with the exception of databases, which are regularly backed up, and log files) don't change really. There are of course code changes, but those are pulled in from a subversion server. Nonetheless, I would like to back up the entire machine. It runs FreeBsd 6.2, and has apache, tomcat as well as postgresql on it.

A quick
Code:
#df -h
reveals
Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a     70G    6.3G     58G    10%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad2s1d     72G    8.2G     58G    12%    /opt
I read that in order to backup a live system you have to use the -L option when using dump. This should take a snapshot of the filesystem and then dump that to avoid missing changes while dump is executed.

After investigating for a while I came up with
Code:
#dump -0u -h 0 -C 16 -L -f path/to/file/to/dump/to
where -0 is for full backup, -u for update of the dumpdates file, -h 0 for honoring no nodump flags that could be set, -C 16 for cache size of 16MB, -L for live system, -f for the output file.

This makes sense to me. Also, I verified that the directory /.snap exists, so that a snapshot can be taken.

Questions are as follows:
1) What do I need to specify to be backed up? Does no argument need to be provided to backup the entire machine? Does "/" suffice? Do I need to specify the device name as in "/dev/ad0s1a"?

2) When the backup is written, will it be backed up as well and then recursively repeatedly backed up? How can I avoid that if I don't have an external device to write to? Does the option -L take care of that?

Thanks in advance,
mwotsch
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning an entire drive? spiderpig OpenBSD General 12 14th August 2019 09:49 AM
How can I move this system? Randux FreeBSD Installation and Upgrading 7 3rd February 2009 09:01 AM
system resources gosha OpenBSD General 7 30th January 2009 12:01 AM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM
backing up via 'dump'... Damien787 FreeBSD General 5 8th May 2008 01:05 AM


All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick