this post was submitted on 14 May 2025
663 points (98.0% liked)
Programmer Humor
27289 readers
1593 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
A more complex but more commonly used program is
rsyncrsync -rav /home/user/Documents /mnt/usbdriveis treated differently thanrsync -rav /home/user/Documents/ /mnt/usbdrivewhich is different thanrsync -rav /home/user/Documents /mnt/usbdrive/which is different thanrsync -rav /home/user/Documents/ /mnt/usbdrive/It's a great tool for making copies onto drives, even servers. But man you have to double check how each folder path is laid out, otherwise it'll write the files of one folder to the main drive, unorganized.
I recommend
--dry-runand reading the stdout with human readable output-h. And dont use the--deleteflag if you dont know what will happen ๐