Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

So, how to make a few archive parts or how to make archive for some part of files (0-100 items, than 1000-200 items etc)?

share|improve this question

migrated from stackoverflow.com Apr 24 '11 at 13:27

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 1 down vote accepted

Don't. Tarpipe it.

ssh user@host tar cjf - files/to/archive > backup.tar.bz2

This will build the tarball on the remote side and send the results to your system, where it gets put into a file called "backup.tar.bz2".

share|improve this answer
    
Got error then: Filesize limit exceeded: 25 –  Anthony Apr 24 '11 at 14:40
    
Drop the j and the .bz2 then, so that it doesn't produce any files on the remote system. –  Ignacio Vazquez-Abrams Apr 24 '11 at 15:54

GNU split if you have to. Tar it to one archive and then use this command.

share|improve this answer
    
The main problem is that I haven't any roots for edit privilages on my hosting. And when I make an archive I get an error: "Filesize limit exceeded: 25" –  Anthony Apr 24 '11 at 13:39
    
@Anthony That's a problem. You would have to make a lot of archives and give them out. This wouldn't be nice. And by the way, if it's a backup of all your stuff, can't you ask the admin? –  Chris Warrick Apr 24 '11 at 13:51
    
Unfortunately, it is almost impossible. If anybody doesn't help me, then will try to ask the admin... –  Anthony Apr 24 '11 at 14:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.