PDA

View Full Version : how can iget tar to create split file archives



kakashi
November 19th, 2005, 08:08 AM
i want to back up my hdd and store it. but the place i want to star it (xbox ) has a fat filesystem that does not allow file larger than 4 gb. how i can i backup my files in split archives. kind of like rar part files.

GeneralZod
November 19th, 2005, 08:46 AM
I'm not sure if tar itself provides this capability, but



man split

could help.

kakashi
November 19th, 2005, 09:08 AM
oh thanks i used split to split the file but can't figure out how to put in back togather.
any help.

PatrickMay16
November 19th, 2005, 09:57 AM
oh thanks i used split to split the file but can't figure out how to put in back togather.
any help.
I'm not sure, but maybe the "join" command would do it? I looked at the manpage for "join", but I'm not entirely sure if it's the command you need.

Worth a try anyway, right?

GeneralZod
November 19th, 2005, 09:58 AM
You can just use "cat"


man cat

Since the split filenames are in alphabetical order (and all beginning with <prefix>), I would imagine that



cat <prefix>* > outputfile


would work, but i don't know for sure! (Obviously <prefix> should be replaced by whatever you chose as your split file prefix).

My recommendation would be to try the above "cat" command and then take an md5sum of outputfile to see if it matches your original file. Be careful, and don't delete the originals until you are sure that the split versions can easily be reassembled into the original file! :)