this post was submitted on 28 Aug 2023
397 points (96.3% liked)

Programmer Humor

32415 readers
1005 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

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

top 18 comments
sorted by: hot top controversial new old
[–] [email protected] 44 points 1 year ago (1 children)
[–] [email protected] 17 points 1 year ago (1 children)

Can it resume interrupted writes?

[–] [email protected] 46 points 1 year ago* (last edited 1 year ago) (4 children)

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.

[–] [email protected] 16 points 1 year ago

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

[–] [email protected] 11 points 1 year ago

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

[–] [email protected] 9 points 1 year ago

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

[–] [email protected] 5 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

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)

[–] [email protected] 39 points 1 year ago (1 children)
[–] [email protected] 13 points 1 year ago

Dudes over here copying a single 125 GB file

[–] [email protected] 12 points 1 year ago

Time for a new USB cable 😅

[–] [email protected] 8 points 1 year ago

My condolences.

[–] [email protected] 6 points 1 year ago (1 children)

My eternal pain with raspberry pis

[–] [email protected] 1 points 1 year ago (1 children)

You mean with the Micro SDs?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

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

[–] [email protected] 5 points 1 year ago

wifi transfer is superior

but also struggled with the same: planning on buying female usb a ports to resolder on the motherboard, also male ports for my io peripherals. also humidity is ur enemy, much of my ports are ruined due to corrrosion. run ur ac people!

[–] [email protected] 0 points 1 year ago

Reminds me of Spin City and Carters dog :)