this post was submitted on 30 Jan 2026
60 points (94.1% liked)
Linux
11930 readers
501 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
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
It's a damn pain to remember all the flags. How many flags can a program friggin have? I'm always afraid that some flag I enter will reverse the sync and delete everything in the source folder because the target is empty.
I use rsync only when all params have been reseasrched and tested. cpx presumably just requires
cpx - r source targetinstead of 5 rsync flags.The only one you need is -a. -avz if you want verbose and compression.
--progress=info2 could be a bit shorter imo
I just looked it up and - x means one filesystem. But does - v give you a progress bar or just a lost of stuff copied?
IIRC rsync also treats the trailing slash in a special manner that I always have to look up.
The trailing slash is just following cp's own special treatment
Ha. I meant z. I guess I was getting mixed up with tar.
No slash means the directory. Slash means the items in the directory.
A version of
rsyncwithout this risk would be a killer app. Haha.What 5 flags did rsync need? I always just do -av and go about my day. And the -v is kinda optional.
How do you get the progress bar?
--progress🤷♂️