Flat Earth Catalogue

2023-08-18

handy cp options

 cp -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

Powered by Blogger

 

(K) 2002-present. All rights reversed, except as noted.

Hard-won technical knowledge, old rants, and broken links from 10 years ago. I should not have to explain this in the 21st century, but no, I do not actually believe the world is flat.

Past
current