2023-08-18
handy cp optionscp -ur --preserve=timestamps ./* /somewhere/else/
-u is for update, it only copies if the local one is newer than the one somewhere else
-r is for recursive, into subdirectories
-p preserves mode, owner, and timestamps, but in my case I'm copying to drive-fs so I don't want to dick up its mode. Not sure if preserving owner also preserves group, but I don't want to dick that up either.
There are other neato options like hardlinking or symlinking which would be applicable if not crossing filesystem boundaries.
01:40