Tag Info

New answers tagged

8

Use tar: tar -cf my_big_folder.tar /my/big/folder Restore the archive with tar -xf my_big_folder.tar -C / -C will change to the root directory to restore your archive since the archive created above contains absolute paths. EDIT: Due to the relatively big size of the archive, it'd be best to send it [directly] to its final location, using SSH or a mount ...


2

The fact that you: can't decompress the file then because it is not recognized as a gzip file indicates that this is not a quirk of the file command misdetecting the file format. The file is actually not valid or it is corrupt. If these files were generated with normal gzip with no errors reported and normal gunzip cannot then decompress them then ...


2

If you really want to do this with dd, you need to split your reads up: dd if=/dev/sda bs=512 count=60515006 | gzip -9 > dump1.gz will dump the first 60515006 sectors of /dev/sda to dump1.gz, compressing with gzip. Then dd if=/dev/sda bs=512 skip=60517093 count=... | gzip -9 > dump2.gz will skip the failed part and dump the next however many ...



Top 50 recent answers are included