Score:0

Issue regarding copying

nu flag

I have one file which is of 60GB i need to copy it to cloud server from local server

steps i am following
I am splitting file (nohup split -b 10G filename.gz &) into chunks which is of 10GB and

Then copying to cloud server once it reaches destination
I am doing zcat xa* > file.gz

at that time we are getting below error

gzip: xaa: unexpected end of file

what are the steps to be followed to overcome this issue

command i am using to copy
scp -i .pem filename user@hostname:/path

pl flag
I would checksum the file before and after upload to make sure they were not corrupted in transit. Use something like `sha256sum` on each end and make sure they match. If any don't match, you'll need to re-upload them.
zwets avatar
us flag
You shouldn't do `zcat xa*` but `cat xa*`. You have broken a gzipped file into chunks. You can't gunzip them separately and first need to reconstitute the whole file. Also `zcat anything > something.gz` makes no sense at all, as the left hand side _unzips_.
zwets avatar
us flag
Also, instead of `scp`, better use `rsync` and do away with the whole splitting complexity. `rsync` will resume partial copies.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.