DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th June 2011
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default Rsync question

Hi
Am i right in thinking that it's not possible to rsync my OpenBSD 4.8 to a drive formatted for ext3?
So for backing up and restoring Linux, FreeBSD and OpenBSD to an external USB drive, i'd have to use fdisk to make a slice for Linux/FreeBSD and format it accordingly, then make a slice for OpenBSD etc?
Or being as though i might be writing/reading from a large file(which is on an ext3 filesystem) might OpenBSD not care, due to it being a file, that this large file is on an ext3 filesystem?. Thus could i get away with just formatting the external USB drive for ext3?
I'm not joking i really am that much of a OpenBSD n00b, from a debian/CentOS background. I just want to know about the easiest way to back up and restore all my *nixes onto my 1TB drive using rsync and was wondering which way round to do it?
cheers for any advice
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2011
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by unixjingleman View Post
Am i right in thinking that it's not possible to rsync my OpenBSD 4.8 to a drive formatted for ext3?
Correct. Compare the output of the following two commands:
  • $ man -k ext2
  • $ man -k ext3
Quote:
So for backing up and restoring Linux, FreeBSD and OpenBSD to an external USB drive, i'd have to use fdisk to make a slice for Linux/FreeBSD and format it accordingly, then make a slice for OpenBSD etc?
  • As a practical solution, yes. Partitions will need to created which can be identified by each operating system.
  • If you really wanted to pursue a universal solution which would handle all operating systems, you could explore use of dd(1), but this is slow...
Quote:
Or being as though i might be writing/reading from a large file(which is on an ext3 filesystem) might OpenBSD not care, due to it being a file, that this large file is on an ext3 filesystem?.
Again, if you issued the earlier command:

$ man -k ext3

...you will have found that ext3 is not supported by OpenBSD. Period.
Quote:
I'm not joking i really am that much of a OpenBSD n00b, from a debian/CentOS background...
We all are/were newbies at some point. You don't need to endlessly repeat this fact.
Quote:
I just want to know about the easiest way to back up and restore all my *nixes onto my 1TB drive using rsync and was wondering which way round to do it?
Again, create partitions recognized by each operating system & back up as recommended by each operating system culture.
Reply With Quote
  #3   (View Single Post)  
Old 7th June 2011
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default

In this thread it says i can back up a FreeBSD system by sending the back up through the network, to a Linux system that has an ext3 formatted drive attached to it. Yet the output of:
Code:
#man -k ext3
On FreeBSD says that ext3 is unsupported.
and in this thread it says that OpenBSD can't be backed up to a Linux box over the network, to a Linux box with an ext3 formatted external drive attached to it, using rsync. So why can FreeBSD be backed up, over the network, using rsync and OpenBSD can't when both FreeBSD and OpenBSD don't support ext3??
Thank you very much for getting me one step closer to backing up all my *nixes
regards

Last edited by unixjingleman; 7th June 2011 at 05:29 PM.
Reply With Quote
  #4   (View Single Post)  
Old 7th June 2011
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

If it's over the network, the remote system is the one that needs to support ext3, not the local system. Last I checked, Linux supported ext3 =P

As for OpenBSD not rsyncing to Linux, ocicat was talking about local rsync, not remote.
__________________
Linux/Network-Security Engineer by Profession. OpenBSD user by choice.
Reply With Quote
  #5   (View Single Post)  
Old 7th June 2011
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

@unixjingleman: It would seem that you have a vague understanding of what a "filesystem" actually is, only the kernel needs to be aware the low-level implementation details. User-land programs need only deal with files and directories that are mapped into a virtual filesystem hierarchy.

OpenBSD/FreeBSD support both ext2 and arguably ext3, but only the former is safe to write to.. ext3 is ext2 with journaling (..a low level capability that "logs" changes to files), this functionality is not supported and mounting a ext3 filesystem rw will probably corrupt critical filesystem metadata (..on-disk structures interpreted by the kernel).

For example, a Windows system connecting to a BSD system over FTP would obviously not need to support FFS.. instead both systems share the concept of "files" and "directories" and communicate using an established protocol.
Reply With Quote
  #6   (View Single Post)  
Old 7th June 2011
unixjingleman unixjingleman is offline
Fdisk Soldier
 
Join Date: Jan 2011
Posts: 70
Default

Thanks BSDfan666. You've pointed out something that my thought processes omitted for some reason. I've know about most of the common protocols and about networks for years yet failed to understand file systems properly and didn't deduce, from my knowledge, the obvious nature of file transfer protocols/programs.
cheers
Reply With Quote
Reply

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
basic rsync questions unixjingleman FreeBSD General 5 27th May 2011 04:39 AM
Remote backups server using FreeBSD, ZFS, and Rsync phoenix Guides 1 5th March 2010 12:17 AM
rsync problem paul-lkw General software and network 6 23rd January 2009 02:39 AM
Rsh/rsync problems ebzzry FreeBSD General 4 15th August 2008 08:09 AM
encryption during rsync gkontos General software and network 7 13th June 2008 10:08 AM


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