DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th November 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Talking Yet another backup question

Another backup question?

Right now I'm installing FreeBSD 7 with KDE on Latitude D420 . Once the installation and configuration is done I want to create a backup of my installation so that I can restore it in future. I searched the web and this foroum and found two tools "dd" and "dump". Problem with dd is that it'll copy all the sectors wether they are used or not, so I believe that for my 60GB hd I'll need equal amount of backup space, which is bit expencive in terms of space. Now with dump can I just dump root "/" on an external drive and restore it back in future with restore. If yes can some one please tell me the command. I don't want to dump it to a single file like backup.dump, instead I would prefer to dump the contents of "/" in a directory in my external drive which is mounted at "/mnt/backup".

And what is the procedure to restore such dump. install the base system and use restore to copy the contents from /mnt/backup back? If yes what is the command?

I tried few things but they didn't work. Don't know what is wrong.
Reply With Quote
  #2   (View Single Post)  
Old 6th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

check this.
http://daemonforums.org/showthread.php?t=2238

you can dump any of filesystems (entire filesystem)
simplified example
dump .... / - will dump root, but won't dump /var, /usr etc
Reply With Quote
  #3   (View Single Post)  
Old 7th November 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

I've been using dump to backup my 4 disk RAID 5 configuration running FreeBSD 6.2.

I have tested a restore of the full system using the method 'killasmurf86' explains onto a single drive in a different computer and it all works well.

I would recommend dump over dd. Just make sure you test a restore of your backup.
Reply With Quote
  #4   (View Single Post)  
Old 7th November 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default

Quote:
Originally Posted by killasmurf86 View Post
check this.
http://daemonforums.org/showthread.php?t=2238

you can dump any of filesystems (entire filesystem)
simplified example
dump .... / - will dump root, but won't dump /var, /usr etc
I've not read the article yet, but thanks, This is something what I was looking for. I'll post my question about this after trying it, but as you said it wont dump /var and /usr. This is what I read in the internet too. Generally people make /var and /usr as different partitions on their HD and / just contains the link for it but I just have 2 partitions swap and /. So if I do dump of / then shouldn't it include /var and /usr too.
Reply With Quote
  #5   (View Single Post)  
Old 7th November 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

Yes it will, but it is advisable to have separate partitions for /var and /etc.

For instance if you have a print job go crazy and fill up your /var directory then your computer will not crash, it will just fill up the /var partition. The way you have it setup currently it will crash.

If you backup and restore on to a new drive you can fix this up in the process.
Reply With Quote
  #6   (View Single Post)  
Old 7th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

If you wan't to skips some dir hierarchy (in your case)
you can use (for example):
Code:
chflags nodump /tmp
to clear this flag use
Code:
chflags dump /tmp
Reply With Quote
  #7   (View Single Post)  
Old 7th November 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Default

Quote:
Originally Posted by map7 View Post
Yes it will, but it is advisable to have separate partitions for /var and /etc.

For instance if you have a print job go crazy and fill up your /var directory then your computer will not crash, it will just fill up the /var partition. The way you have it setup currently it will crash.

If you backup and restore on to a new drive you can fix this up in the process.
How big should I keep /var and /etc. Is there any thing else that I should keep separate.
Reply With Quote
  #8   (View Single Post)  
Old 7th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

Quote:
Originally Posted by rex View Post
How big should I keep /var and /etc. Is there any thing else that I should keep separate.
don't separate /etc

/var can be very different....
for destop 1G could be enough
for server few G's


I got 1G and currently using 145M (i use fbsd as destop)
Reply With Quote
Reply

Tags
backup, dump, restore

Thread Tools
Display Modes

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
external drive partition question + fdisk question gosha OpenBSD General 15 15th June 2009 02:00 PM
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM
The best way to backup windows TerryP Other OS 4 8th February 2009 10:32 PM
Backup script(s)? giddyupman General software and network 2 3rd January 2009 02:06 PM
How to backup my system PatrickBaer FreeBSD General 4 16th July 2008 08:12 PM


All times are GMT. The time now is 10:29 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