Transfer files wih directory structure.


 
Thread Tools Search this Thread
Operating Systems SCO Transfer files wih directory structure.
# 1  
Old 04-24-2008
Transfer files wih directory structure.

I need to transfer software off a SCO OpenServer 5.0.5 server. I can not seem to read this server's tape on my other server since the tape drive (IBM Gen 5 DAT 72GB) will continuosly "eject" this DAT 8 tape. I have been able to 'tarball' most of the smaller directories with success and transferred these correct. However, I have a huge directory with numerous sub-directories and a large amount of files. I can not create either a 'tarball' nor a 'cpio file' as each crash with an signal error. What else can anyone suggest?
# 2  
Old 04-25-2008
recommend "tar Cvf nome.tar dirname" this should work unless you had lesss space on hard disk, or a few amount on swap dir, i used this one on very large directories with many subdirs and always works fine, hope you can
# 3  
Old 04-25-2008
Tar to a file (tar Cvf nome.tar dirname) is commonly called "tarball." As I have posted, both tar and cpio will not complete. The following occurs during the process:

Signal 31 - core dumped
# dfspace
/ : Disk space: 11026.95 MB of 17389.48 MB available (63.41%).
/stand : Disk space: 5.01 MB of 14.99 MB available (33.44%).

Total Disk Space: 11031.97 MB of 17404.48 MB available (63.39%).
#

The file created:

-rw------- 1 root sys 1073741312 Apr 25 11:03 file.tar


What can I do now?
# 4  
Old 04-25-2008
ok sorry about that, didn't know tarball as a tar command line, but it looks like you have space problems, i suggest you tar a few files, backup and erase the file and tar the nex according to the space that it's on hdd, another though possible it's that there are damadeg sectors on the hdd, when the tar file it's on creation goes to the bad sectors and it breaks, maybe should backup small pieces good luck, it could be better to get a tape to backup or over the net pass small files with created with tar, hope to guide or help you
# 5  
Old 04-27-2008
As you can see, the fiile (1073741312 Apr 25 11:03 file.tar) does not appear to be complete. The file system still has room:

# dfspace
/ : Disk space: 11026.95 MB of 17389.48 MB available (63.41%).
/stand : Disk space: 5.01 MB of 14.99 MB available (33.44%).

Total Disk Space: 11031.97 MB of 17404.48 MB available (63.39%).


So I do not believe that the system is out of room.
# 6  
Old 04-27-2008
That's pretty short beneath one gigabye. Maybe you are not allowed to create such a big file (quota, ulimit) or your filesystem is unable to do so? (I don't use SCO, just a guess with a typical problem) To test it: can you
Code:
dd if=/dev/null of=test.img bs=1024 count=5242880

# 7  
Old 04-27-2008
I'm not wanting to find how to fix this on my old server. I want to transfer off my old server. I wonder if this is can be cause by the 2GB file limit.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to move the files older than x days with similar directory structure?

Hello, I need to move all the files inside /XYZ (has multi-depth sub directories) that are older than 14 days to/ABC directory but with retaining the SAME directory structure. for example: /XYZ/1/2/3/A/b.txt should be moved as /ABC/1/2/3/A/b.txt I know about find /XYZ -type f -mtime +14... (3 Replies)
Discussion started by: prvnrk
3 Replies

2. Shell Programming and Scripting

Archiving files keeping the same structure directory

Hello Team, We would like to backup a lot of files inside of a structure of directories, four, five or more levels in some Ubuntu, Mac and Solaris systems. For instance: /home/chuck/sales/virgin/rent-quote.pdf /home/chuck/sales/marriott/vacation-quote.pdf... (2 Replies)
Discussion started by: csierra
2 Replies

3. Shell Programming and Scripting

Extract files from tar ball without directory structure

Hi, I have tar filw which has multiple directories which contain files. When i extract using tar -xf the directory structure also get extracted. I require only files and not directory structures as there will be overhead of moving the files again. So i searched here and got a solution but... (4 Replies)
Discussion started by: chetan.c
4 Replies

4. Shell Programming and Scripting

How to traverse directory structure and sum size of files?

How do I write a bash or ruby or perl or groovy script to print all the files in my directory tree that are one-to-two years old, the size of each file, and the sum of file sizes and then delete them? I was using find . -atime +365 -exec rm '{}' \; but the problem was that I could not... (5 Replies)
Discussion started by: siegfried
5 Replies

5. Shell Programming and Scripting

Copying a directory structure with the latest versions of files

Hello I have three directory structures for code releases. Each directory structure looks like this: bash-3.00$ ls -R | more .: Test_Release_1 Test_Release_2 Test_Release_3 ./Test_Release_1/dbcode: rp_online_import_srdp.pkb-1 srdp_ar_validation.pkb-1... (1 Reply)
Discussion started by: Glyn_Mo
1 Replies

6. Shell Programming and Scripting

Script to remove all empty files within the directory structure?

Hi I need to write a shell script which basically searches for all the empty files within the directory structure, lists them before asking the user to confirm if they would like to delete them. If the user deletes the file then a notice would appear confirming the file is deleted. I've be... (5 Replies)
Discussion started by: cat123
5 Replies

7. UNIX for Dummies Questions & Answers

copy files with directory structure

i have a text file as. /database/sp/NTR_Update_Imsi_List.sql /database/sp/NTR_Update_Imsi_Range_List.sql /database/sp/NTR_Vlr_Upload.sql /database/tables/StatsTables.sql /mib/ntr.mib /mib/ntr.v2.mib /scripts/operations/ntr/IMSITracer.ph /scripts/operations/ntr/IMSITracer.pl ... (3 Replies)
Discussion started by: adddy
3 Replies

8. UNIX for Advanced & Expert Users

MV files from one directory structure(multiple level) to other directory structure

Hi, I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Discussion started by: srmadab
4 Replies

9. Shell Programming and Scripting

disk space used for files with in a directory structure.

Hello, I am new to shell scripting and would really appreciate if someone could help me with this question. I have a directory structure as follows.. main directory is DATA under which i have different directories names fileserver01, fileserver02 ... till fileserver 15. under each... (8 Replies)
Discussion started by: kasala
8 Replies
Login or Register to Ask a Question