Re: File transfer from NetBSD to OpenBSD

2015-03-03 Thread Andrew Daugherity
On Sun, Mar 1, 2015 at 10:40 AM, etie...@magickarpet.org wrote:

 Hello there,

 Could anyone recommend which filesystem type to use when backing up a few
 hundred GB of files from NetBSD onto a USB disk, planning to restore them
 on an OpenBSD machine. I remember distantly that last time I tried with
 FFS, it didn't work.

I assume NFS/scp/rsync is out of the question?

I've successfully used FreeBSD FFS partitions in NetBSD, after adjusting
the MBR partition type (A5/A6/A9) and disklabel (renamed sd0d to sd0h since
NetBSD uses sd0c for the entire BSD MBR partition and sd0d for the
entire disk), so I would expect it to work with these adjustments, but it
is by no means guaranteed (this was several versions ago), and caveat
emptor applies.

tar is good and simple if you're restoring the whole thing right away, but
if you want to easily get various individual files out of the backup or
rearrange the structure, rsync to ext2 (or ffs, maybe) would be better.



Re: File transfer from NetBSD to OpenBSD

2015-03-03 Thread Gene
On Sun, Mar 1, 2015 at 12:06 PM, Janjaap van Velthooven janj...@stack.nl
wrote:

 On Sun, Mar 01, 2015 at 04:40:25PM +, etie...@magickarpet.org wrote:
  Hello there,
 
  Could anyone recommend which filesystem type to use when backing up
  a few hundred GB of files from NetBSD onto a USB disk, planning to
  restore them on an OpenBSD machine. I remember distantly that last
  time I tried with FFS, it didn't work.

 Personally I would just try to tar to the usb device and skip having
 a filesystem on the usb device; that way there is no filesystem to be
 incompatible.


Such a simple and elegant solution.

Having never done this before I just tested it.  Very slick.



  Cheers,
  --
  Étienne

 Janjaap van Velthooven
 --  
/ __/ /_/ __/ /_  __/ __/ /___  /
   / /_  __/___/_/_  /___  / / __/ /___  / /  janj...@stack.nl
  /___/_/_/_/_/_/_/___/_/_/



Re: File transfer from NetBSD to OpenBSD

2015-03-01 Thread Janjaap van Velthooven
On Sun, Mar 01, 2015 at 04:40:25PM +, etie...@magickarpet.org wrote:
 Hello there,
 
 Could anyone recommend which filesystem type to use when backing up
 a few hundred GB of files from NetBSD onto a USB disk, planning to
 restore them on an OpenBSD machine. I remember distantly that last
 time I tried with FFS, it didn't work.

Personally I would just try to tar to the usb device and skip having
a filesystem on the usb device; that way there is no filesystem to be
incompatible.

 Cheers,
 -- 
 Étienne

Janjaap van Velthooven
--  
   / __/ /_/ __/ /_  __/ __/ /___  / 
  / /_  __/___/_/_  /___  / / __/ /___  / /  janj...@stack.nl
 /___/_/_/_/_/_/_/___/_/_/



Re: File transfer from NetBSD to OpenBSD

2015-03-01 Thread etienne

On 2015-03-01 17:38, Kenneth Gober wrote:
FAT (and FAT32) would probably involve less experimentation.  to bypass 
the

limitations of FAT, I recommend using tar(1) and split(1).

tar cfC - /filesystem-to-back-up . | split -b 2000m

that will produce a tar file split into 2GB chunks named xaa, xab, xac,
etc.  to restore:

cat x?? | tar xfC - /directory-to-restore-into .


Great idea. Thanks, that should do the trick.


this assumes that NetBSD tar and split are substantially similar to
OpenBSD's.


I'll report if I found it doesn't.

Cheers!

--
Étienne



File transfer from NetBSD to OpenBSD

2015-03-01 Thread etienne

Hello there,

Could anyone recommend which filesystem type to use when backing up a 
few hundred GB of files from NetBSD onto a USB disk, planning to restore 
them on an OpenBSD machine. I remember distantly that last time I tried 
with FFS, it didn't work.


Cheers,

--
Étienne



Re: File transfer from NetBSD to OpenBSD

2015-03-01 Thread Josh Grosse

On 2015-03-01 11:40, etie...@magickarpet.org wrote:


Could anyone recommend which filesystem type to use when backing up a
few hundred GB of files from NetBSD onto a USB disk, planning to
restore them on an OpenBSD machine. I remember distantly that last
time I tried with FFS, it didn't work.


You might experiment with ext2fs.  IIRC, FAT has two strikes against it:
owner/mode, and 4GB individual filesize limit.  NTFS (built-in, or FUSE)
has its own owner/mode translation issues, such that you would liely 
want

to archive files as intermediate step.

Of course, network file transfers, if you had the bandwidth, would 
preclude

the need for any foreign file systems.



Re: File transfer from NetBSD to OpenBSD

2015-03-01 Thread Zeljko Jovanovic

On 01.03.2015. 17:55, Josh Grosse wrote:


You might experiment with ext2fs.  IIRC, FAT has two strikes against it:
owner/mode, and 4GB individual filesize limit.  NTFS (built-in, or FUSE)
has its own owner/mode translation issues, such that you would liely want
to archive files as intermediate step.


Or use FAT, but put all files in one or serveral tar archives.
In that way, file type, ownership and permissions would be saved.



Re: File transfer from NetBSD to OpenBSD

2015-03-01 Thread Kenneth Gober
FAT (and FAT32) would probably involve less experimentation.  to bypass the
limitations of FAT, I recommend using tar(1) and split(1).

tar cfC - /filesystem-to-back-up . | split -b 2000m

that will produce a tar file split into 2GB chunks named xaa, xab, xac,
etc.  to restore:

cat x?? | tar xfC - /directory-to-restore-into .

this assumes that NetBSD tar and split are substantially similar to
OpenBSD's.

-ken

On Sun, Mar 1, 2015 at 11:55 AM, Josh Grosse j...@jggimi.homeip.net wrote:

 On 2015-03-01 11:40, etie...@magickarpet.org wrote:

  Could anyone recommend which filesystem type to use when backing up a
 few hundred GB of files from NetBSD onto a USB disk, planning to
 restore them on an OpenBSD machine. I remember distantly that last
 time I tried with FFS, it didn't work.


 You might experiment with ext2fs.  IIRC, FAT has two strikes against it:
 owner/mode, and 4GB individual filesize limit.  NTFS (built-in, or FUSE)
 has its own owner/mode translation issues, such that you would liely want
 to archive files as intermediate step.

 Of course, network file transfers, if you had the bandwidth, would preclude
 the need for any foreign file systems.