Copying with rsync
By jeltsch on Mon, 02/17/2020 - 20:10rsync --progress --recursive source target
To resume a previously interrupted copy:
rsync --progress --recursive --ignore-existing source target
rsync --progress --recursive source target
To resume a previously interrupted copy:
rsync --progress --recursive --ignore-existing source target
In order to copy all xml files from one directory to another without overwriting existing files with the same name:
cp -vnpr /source/*.xml /destination
I recursively screwed up the file permissions in my html servers root directory. To fix it I needed to deploy some "advanced" chmod settings. Obviously I want to treat directories and files differently. I didn't come up with a better solution than the following:
chmod -R u=rw-x,g=rw-x,o=r-wx *
chmod -R a+X *