Results 1 to 10 of 10

Thread: Practical compression advice needed (and a samba mystery)

Hybrid View

  1. #1
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    13

    Practical compression advice needed (and a samba mystery)

    Dear forum,

    You guys have no idea how much you've helped me in the past when I have stumbled into Knoppix problems and scanned the forum. Thanx! This time though, I think I need to actually post my prob because I can not find a similar problem/request here or elsewhere. Its a general "usage" problem so I guess you don't have to be a hacker to give me some advice. So, here I go.

    I am in charge of managing a couple of clustered Quantian 0.5.9.3 (http://dirk.eddelbuettel.com/quantian.html) boxes that we use for biological computation at my department, and to make regular backups of important files. The backups are meant to be transferred to a HP Windows NTFS-RAID server. The server is reachable with (tada!) samba. I have tried mirroring the important folders with rdiff-backup or rsync. But the first doesn't seem to work with a mounted samba drive and the second fails to transfer all files (I think due to odd characters in the file names - like : and ?) and permissions and ownership screws up anyways.

    A bz2 compressed tar archive of these files weighs in at about 4 Gigs and can be produced in about two hours or so, which is ok if I do the backup weekly. However, copying such a file to the server is not possible because the copying-process stops after 2,0Gigs or 2 147 483 647 bytes! I have no idea where this limitation appears, but it's really a pain. Therefor I can use arj instead to produce multiple archives, each of which is smaller than 2,0 gigs. Which can then be transferred. However, I have only managed to run arj on a file or folder and not directly on a pipe from tar, which whould be much nicer and faster and requiring less free diskspace. Thus my horde of questions:

    Do you think there is a way around the 2 Gig-transfer problem?
    Can arj be used in a "tar <files> | arj <archive>" fashion?
    Can any of the other free compression utilities like gzip and bzip2 create multiple archives? And of course then also be "piped to".
    Am I missing a very different (and simple) solution to this problem?

    Regards,
    WedDa

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You could split the tar file like so: tar -cvzf - source_file | split -b 2000m - tarpiece-
    and later glue them together with: cat tarpiece-* > filename.tar.gz

  3. #3
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    13
    Aha! I suspected that there was a simple solution to this. Thanx a M Markus!

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    Quote Originally Posted by Markus
    You could split the tar file like so: tar -cvzf - source_file | split -b 2000m - tarpiece-
    and later glue them together with: cat tarpiece-* > filename.tar.gz
    Though that techinicly won't make 2 gigs you need 2048m for 2 gigs.

    Anway, if your running a windows machine you can peiece that back together with a batch file.

    just start a new txt doc and rename it (whatever).bat

    then rightclick -> edit and type

    Copy /b cut.001 + cut.002 + .. + cut.nnn file.out

    changing cut.xxx to the file name (split makes files with the aa. ab, ac, ad,...) and then changing file.out to what you want the final file name to be.

    I haven't figured out the cut.nnn part, but it seems to be needed just type the filename -aa ,ab, ac... with .nnn on it.

    If that doesn't work you might need to take the aa,ab,ac... parts and make them the extension.

    I had to do that when making a back up of my linux partiton because my destination drive is FAT, so I made the copy then peiced it back togther on windows.

  5. #5
    Senior Member
    Join Date
    Oct 2003
    Location
    Sydney, Australia
    Posts
    157
    Maybe this might fix your problem without needing to cut the file up...
    The smb file system driver in Linux 2.4 has a 2GB size limit.

    Actually, according to the samba team, the 2Gb limit is actually if you use
    mount -t smbfs command which is not within the scope of samba. they
    recommend using smbclient.
    found here http://www.redhat.com/archives/fedor.../msg00173.html

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Quote Originally Posted by firebyrd10
    Quote Originally Posted by Markus
    You could split the tar file like so: tar -cvzf - source_file | split -b 2000m - tarpiece-
    and later glue them together with: cat tarpiece-* > filename.tar.gz
    Though that techinicly won't make 2 gigs you need 2048m for 2 gigs.
    Umm, yes. But I understood that he wanted <2GB splits.
    Even though, if tearinghearout's solution to overcome the limitation works, all is well without needing to split.

  7. #7
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    A DVDburner in any onld linuxbox on that network should be good backup of those 4G tar files. and should be an extra layer of backup (if the files are then restored in said server usng the DVD's).

  8. #8
    Junior Member registered user
    Join Date
    Sep 2004
    Posts
    13
    Wow, guys thanx for your help! I have to look into smbclient and see if it can do the trick.

  9. #9
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    Quote Originally Posted by Markus
    Quote Originally Posted by firebyrd10
    Quote Originally Posted by Markus
    You could split the tar file like so: tar -cvzf - source_file | split -b 2000m - tarpiece-
    and later glue them together with: cat tarpiece-* > filename.tar.gz
    Though that techinicly won't make 2 gigs you need 2048m for 2 gigs.
    Umm, yes. But I understood that he wanted <2GB splits.
    Even though, if tearinghearout's solution to overcome the limitation works, all is well without needing to split.
    I know, I just had to say that for some reason.

  10. #10
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Quote Originally Posted by firebyrd10
    Quote Originally Posted by Markus
    Quote Originally Posted by firebyrd10
    Quote Originally Posted by Markus
    You could split the tar file like so: tar -cvzf - source_file | split -b 2000m - tarpiece-
    and later glue them together with: cat tarpiece-* > filename.tar.gz
    Though that techinicly won't make 2 gigs you need 2048m for 2 gigs.
    Umm, yes. But I understood that he wanted <2GB splits.
    Even though, if tearinghearout's solution to overcome the limitation works, all is well without needing to split.
    I know, I just had to say that for some reason.
    I'm not going to reason with that

Similar Threads

  1. Emergency advice needed
    By djh-world in forum General Support
    Replies: 3
    Last Post: 02-15-2005, 07:08 PM
  2. HFS Plus mystery
    By eon in forum General Support
    Replies: 0
    Last Post: 12-05-2004, 05:54 PM
  3. Mystery of m23
    By Harry Kuhman in forum General Support
    Replies: 1
    Last Post: 11-25-2004, 04:41 PM
  4. Sound Advice needed - XMMS and GAIM
    By rusty in forum Hardware & Booting
    Replies: 5
    Last Post: 05-23-2004, 05:25 AM
  5. Newbie basic advice needed
    By ellen in forum Hardware & Booting
    Replies: 3
    Last Post: 11-04-2003, 12:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


128GB (4x32GB) SK hynix DDR4 PC4-2666V RDIMM ECC Server Ram HMA84GR7CJR4N-VK picture

128GB (4x32GB) SK hynix DDR4 PC4-2666V RDIMM ECC Server Ram HMA84GR7CJR4N-VK

$799.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Microsoft Windows Server 2022 Standard 64Bit 16 Core-50 CALs DVD With Key& picture

Microsoft Windows Server 2022 Standard 64Bit 16 Core-50 CALs DVD With Key&

$69.90



Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1499.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$308.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2690 v3 | 64gb Ram | 2x 1600W

$524.99



Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD picture

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD

$99.99



Asrock Rack ROMED8-2T Server Motherboard AMD EPYC 7003 (with AMD 3D V-Cache Tech picture

Asrock Rack ROMED8-2T Server Motherboard AMD EPYC 7003 (with AMD 3D V-Cache Tech

$747.99