The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SCO
Google UNIX.COM


SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script to remove all empty files within the directory structure? cat123 Shell Programming and Scripting 5 06-05-2008 06:01 AM
copy files with directory structure adddy UNIX for Dummies Questions & Answers 3 12-11-2006 05:50 AM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 01:01 PM
disk space used for files with in a directory structure. kasala Shell Programming and Scripting 8 01-14-2005 01:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 04-27-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
If you find that the reason you can't tar a big file is that the file system sets a limit, it would seem reasonable to conclude that you ought to be able to tar it in smaller pieces. tar | split will allow you to break up the tar file in fragments which you can cat together at the other end.

Last edited by era; 04-27-2008 at 05:25 PM. Reason: Yes: for a change, a useful cat! (Sorry, couldn't resist)
Reply With Quote
Forum Sponsor
  #9  
Old 04-27-2008
Registered User
 

Join Date: Apr 2008
Location: European Union/Germany
Posts: 183
Well, then I wonder why you do bother with creating that tarball locally. Stream it using ssh and you're done.
Reply With Quote
  #10  
Old 04-28-2008
Registered User
 

Join Date: Aug 2006
Posts: 30
The server has OpenServer 5.0.5 which does not have ssh natively and it was never installed. It is on its way out from my server "park."
Reply With Quote
  #11  
Old 04-28-2008
Registered User
 

Join Date: Aug 2006
Posts: 30
Quote:
Originally Posted by era View Post
If you find that the reason you can't tar a big file is that the file system sets a limit, it would seem reasonable to conclude that you ought to be able to tar it in smaller pieces. tar | split will allow you to break up the tar file in fragments which you can cat together at the other end.
Can you provide an example?
Reply With Quote
  #12  
Old 04-28-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
I have GNU tar and GNU split and GNU tail. I don't know if those are available for SCO (lawsuit time? <ducks>) but you might be less lucky with the built-in variants, for example in whether split accepts human-readable big numbers (I calculated 1024*1024*512 and put that in here, but GNU split would allow simply "512m") and, more crucially, whether it can read standard input when you say "-"

Split demonstrated:

Code:
vnix$ echo fnord | split -d -b 3 - fnord.
vnix$ ls fnord.*
fnord.00  fnord.01
vnix$ tail fnord.*
==> fnord.00 <==
fno
==> fnord.01 <==
rd
Archiving:

Code:
tar whatever | split -a 4 -d -b 536870912 - whatever.tar.
-d means use numeric suffixes, -a 4 means create suffixes of length 4, -b bignum is how big each file can be.

Dearchiving:

Code:
cat whatever.tar.* | tar xvf -
Make sure you have enough digits in the suffix so that cat will not put them in the wrong order! I believe the wildcard should expand to an alphabetic list on all platforms.

I've done this when I had to make backups to an USB drive which was FAT formatted so it only accepted (IIRC) max 2 gigs in one file, but this is untested, from memory.

I suggest you try to create a big file with dd like fabtagon proposed, just to check that your coordinates are not completely off.

Last edited by era; 04-28-2008 at 12:30 PM. Reason: Test with dd first
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
cpio

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:36 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0