salvage file from gstmp slices that didn't combine

Hi, GCloud community. Over a year ago, I used gsutil cp to download a backup copy of an org wide Takeout order. As it does, gsutil sliced some large files to speed up downloading. However, an error happened with (at least) one file. And of course, I need to recover the data in that file.

I have two _.gstmp slices of a ZIP file. Is there any way to recover any of the data from the original zip?

Thanks in advance!

Hi @ftcsean ,

Welcome to Google Cloud Community!

Based on the information you’ve provided, it’s possible that you may be able to recover some of the data from the original ZIP file by combining the two _.gstmp slices using the gsutil cat command. This command allows you to concatenate the contents of multiple files and write them to a single file.

For example, if the two _.gstmp slices are named slice1.gstmp and slice2.gstmp, you could use the following command to combine them into a new file called combined.zip:

gsutil cat slice1.gstmp slice2.gstmp > combined.zip

You could then try to extract the contents of the combined.zip file using a tool like 7-Zip or WinZip to see if you’re able to recover any of the data from the original ZIP file.

Thank you!

Thanks, @christianpaula ! That did the trick.

1 Like