I wonder how well rsync would have fared here.
My experience with using cp to copy 432 million files (39 TB)
21–30 of 267 posts
Re: My experience with using cp to copy 432 million files (39 TB)
#22> 20 years experience with various Unix variants > I browsed the net for other peoples' experience with copying many files and quickly decided that cp would do the job nicely. After 20 years you no longer google how to copy files. Edit: Reading on he talks about strace and even reading cp's source code which makes it even weirder that he had to google how to do this... Edit2: Comments! Took only ten downvotes before…
Re: My experience with using cp to copy 432 million files (39 TB)
#23I would probably have used tar|tar for this, or rsync.
Re: My experience with using cp to copy 432 million files (39 TB)
#24> 20 years experience with various Unix variants > I browsed the net for other peoples' experience with copying many files and quickly decided that cp would do the job nicely. After 20 years you no longer google how to copy files. Edit: Reading on he talks about strace and even reading cp's source code which makes it even weirder that he had to google how to do this... Edit2: Comments! Took only ten downvotes before…
Re: My experience with using cp to copy 432 million files (39 TB)
#25Re: My experience with using cp to copy 432 million files (39 TB)
#26Does anyone know what the 'tear down' part is about? If it's about erasing the hashtable from memory, what takes so long? I would expect that to be very fast: you don't have to write zeros to it all, you just tell your GC or memory manager to mark it as free.
Re: My experience with using cp to copy 432 million files (39 TB)
#27https://git-annex.branchable.com/bugs/Hard_links_not_synced_...
Re: My experience with using cp to copy 432 million files (39 TB)
#28> Wanting the buffers to be flushed so that I had a complete logfile, I gave cp more than a day to finish disassembling its hash table, before giving up and killing the process....Disassembling data structures nicely can take much more time than just tearing them down brutally when the process exits. Does anyone know what the 'tear down' part is about? If it's about erasing the hashtable from memory, what takes so lo…
> And unless old systems without working memory management must be supported, I don't see any harm in simply removing the call to the forget_all function towards the end of cp.c.
Re: My experience with using cp to copy 432 million files (39 TB)
#29I would probably have used tar|tar for this, or rsync.
You're right to recommend a tarpipe. I've had to copy several very large BackupPC storage pools in the past, and a tarpipe is the most reliable way to do it. (The only downside to BackupPC IMO...) For future reference for other folks, the command would look something like this: cd /old-directory && tar czvflpS - . | tar -C /new-directory -xzvf - Tarpipes are especially neat because they can work well over ssh (make s…
Re: My experience with using cp to copy 432 million files (39 TB)
#30>We use XFS Why?