This just happened to me today

It took 2 more hours than it should have to copy 125GB

376 points · 17 comments · view on lemmy.world

17 Comments

bigkahuna1986@lemmy.ml · 42 pts · 2y (8 replies)

Have you tried rsync?

QuazarOmega@lemy.lol · 16 pts · 2y (7 replies)

Can it resume interrupted writes?

bigkahuna1986@lemmy.ml · 42 pts · 2y (6 replies)

Heck to the yeah. I usually run

rsync -av src/ dst/

Which is verbose and archive mode (keeps mod times, user, etc). You can also add -P for progress.

Here is the man page https://linux.die.net/man/1/rsync

If it gets interrupted, just run that same command again.

Edit: also it's usually preinstalled on every Linux distro and should be easy to install for Windows too.

user224@lemmy.sdf.org · 15 pts · 2y

By the way, --info=progress2 will show a total progress information.

QuazarOmega@lemy.lol · 10 pts · 2y

Woah, that's amazing! Can't believe I've been sleeping on it for so long

AClassyGentleman@lemmy.world · 8 pts · 2y

I feel like rsync may genuinely be one of the best, most slept on tools out there. It even works over ssh.

camr_on@lemmy.world · 5 pts · 2y (2 replies)

I like to add --ignore-existing to it aswell in case it gets interrupted. Useful when it's a timed backup or similar

KIM_JONG_JUICEBOX@lemmy.ml · 2 pts · 2y (1 reply)

If it doesn’t ignore existing by default, what’s the difference between that and plain old copy?

bjorney@lemmy.ca · 3 pts · 2y

Rsync checks the files and only issues the copy if the file size/modified dates are different by default. Ignore existing will not overwrite a changed file afaik.

If the file is large it only sends the changed blocks (e.g. you have a 100gb database and only a dozen 4mb blocks have been modified it won't send the full 100gb across the network)

pastermil@sh.itjust.works · 37 pts · 2y (1 reply)

OP never heard of rsync

jcg@halubilo.social · 12 pts · 2y

Dudes over here copying a single 125 GB file

GrammatonCleric@lemmy.world · 12 pts · 2y

Time for a new USB cable 😅

blackluster117@possumpat.io · 7 pts · 2y

My condolences.

lauha@lemmy.one · 5 pts · 2y (2 replies)

My eternal pain with raspberry pis

nicoweio@lemmy.world · 1 pts · 2y (1 reply)

You mean with the Micro SDs?

lauha@lemmy.one · 2 pts · 2y

No, the slightest touch on your server power cable and it boots

1984@lemmy.today · 0 pts · 2y

Reminds me of Spin City and Carters dog :)