LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-01-2011, 10:03 PM   #1
methodtwo
Member
 
Registered: May 2007
Posts: 146

Rep: Reputation: 18
Backing up bsds and linux


Hi
I want to backup my OpenBSD, Freebsd, MacBook and Linux completely all on the same external usb hard-drive(which is a 1 TB drive).
So should i create a partition, using disk-utility, for HFS+. Then use fdisk for allocating space/creating slices using OpenBSD and then FreeBSD. Then use cfdisk to create partitions for Linux. Then use timemachine to backup the MacBook. Then use:
Code:
#dump -OLauf /usb-drive/mount/point /dev/ad0s1a
and repeat this for my BSD filesystems. First doing this onto the first fdisk slice i created, for, say, OpenBSD. Then doing the same to put filesystems on the second fdisk slice i created, for FreeBSD?.
Then use:
Code:
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
And then move backup.tgz to external drive.
I would have to know the exact size of the fdisk slices for the BSDs.But i could find that out easily through fdisk.
Also would i have to use fdisk for the linux backup.tgz, or could i just put this file straight on the external usb drive?.
Please could someone tell me the best way to do this?. I already know how to do it over the network(sending all filesystems to the MacBook, which has the external usb drive mounted on it's filesystem). I would like to know how to do it straight onto the external usb drive, for all these systems. This way i would have more than one method at my disposal and could choose which way to do it, now and in the future.
After the systems have all been copied to the external drive i will use rsync to only back up the parts of each filesystem that have changed. I just need to know if the method i plan to use is correct? etc...
Thank you very much for your time. Thankx for any replies too.
 
Old 03-02-2011, 12:27 AM   #2
methodtwo
Member
 
Registered: May 2007
Posts: 146

Original Poster
Rep: Reputation: 18
In case you're wondering. I just want a way of returning to a known good system in the event of a serious mishap. I don't need clones for forensics, just a way of having the original systems recovered.
Thankx
 
Old 03-02-2011, 10:47 AM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Would Clonezilla meet your needs? I have only used on/for Linux, but:

From http://www.clonezilla.org/:
Quote:
Filesystem supported: (1) ext2, ext3, ext4, reiserfs, reiser4, xfs, jfs of GNU/Linux, (2) FAT, NTFS of MS Windows, (3) HFS+ of Mac OS, (4) UFS of FreeBSD, NetBSD, and OpenBSD, and (5) VMFS of VMWare ESX. Therefore you can clone GNU/Linux, MS windows, Intel-based Mac OS, and FreeBSD, NetBSD, and OpenBSD, no matter it's 32-bit (x86) or 64-bit (x86-64) OS. For these file systems, only used blocks in partition are saved and restored. For unsupported file system, sector-to-sector copy is done by dd in Clonezilla.
 
Old 03-04-2011, 02:14 AM   #4
wafflesausage
Member
 
Registered: Oct 2010
Distribution: FreeBSD(preferred), Fedora 15, WebOS, Mac OS, NetBSD, Ubuntu (if I have no other choice)
Posts: 46

Rep: Reputation: 1
As far as the issue of having all of those differents FS's goes, I suggest formatting it with 1 FS and exporting it via NFS (AFP is better for Time Machine in my experience, but a single FS can still be exported as both) thus creating a virtual FS that all 3 OS's can read/write to/from. As far as the actual backing program goes, I hear that rsync is good as it only backups what it needs to rather than everything on your disk. The method that I use personally is tar cvjpf 201103040211system.backup.tar.bz2 --exclude=/ --exclude=/backup --exclude=foo / and compress it with bzip2 -9.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: My latest warning against dual- and triple-booting Linux and BSDs LXer Syndicated Linux News 1 08-15-2008 03:25 AM
Mutlibooting with BSDs and Linux! duffmckagan *BSD 6 10-18-2005 09:54 PM
the difference between the BSDS JonChristmas *BSD 5 06-17-2004 11:52 PM
What separates BSDs from Linux? CrazyPilot *BSD 4 04-11-2004 02:44 AM
Why are the *BSDs not as popular as Linux? Gerardoj Linux - General 3 08-30-2003 12:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration