Score:0

How to best copy large folders?

eg flag

I want to copy 1 TB of data from 1 HDD to another via Terminal.

What is the best approach to this?

So far, i've used the following, but I've no idea, whether it actually makes progress, or if it just froze the window:

sudo cp -r /mnt/CloudDrive1 /mnt/CloudDrive2

David avatar
cn flag
Command looks ok. This will take a loooooong time USB device to USB device.
Kulfy avatar
mz flag
You can use verbose flag `-v` to know what is being copied, assuming you have multiple files in the drive
cc flag
Search this site for "slow copy" -- you have a worst case situation. Basically when writes are slower than reads, system buffers fill, and the system drags to a crawl. Install and use "nocache" on whatever copy command you select to eliminate caching input blocks (might help a little).
Score:3
cn flag

use rsync. It shows a progress bar, it has resume in case there is an error or you need to stop for a while.

Copy of a directory recursivly:

rsync -av --progress /mnt/CloudDrive1/ /mnt/CloudDrive2/

-a The archive mode behaves like the recursive mode but keeps all file permissions, symbolic links, file ownership, etc.

-v Verbose output. Displays the details of the transfer.

--progress Displays the transfer progress during synchronization.

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.