Exclude modifying top dir?
Roger via rsync <[email protected]>
| Newsgroups | gmane.network.rsync.general |
|---|---|
| Message-ID | <[email protected]> |
I keep getting the following error. After several years I've had it, and am posting to the mailing list in hopes of better advice than stuckchange. rsync: [generator] failed to set times on "/mnt/tmp/.": Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1336) [sender=3.2.7] As anybody can see, this is the same old trivial error, where we are copying/synchronizing files to a root directory likely not having adequate permissions. Most answers on stuckchange suggest omitting dir times (eg. --omit-dir-times), and this may or may not work. However, this exclusion tends to affect all files and directories, and most times in my experience, maynot be a desireable solution. I've also tried an exclusion (and I thought this was crafty thinking on my part), for omitting the top dir, "eg. --exclude=/.", but still has no affect. There has to be something for omitting modifying only the top directory times? Right? This now seems such a common scenario, where users are mounting loop filesystems, NFS shares, etc; where a users do not have casual access to the "/." directory. Roger -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEE9RWsHyMf/E7wvN52Bs6g7OKIfHUFAmPQtVsACgkQBs6g7OKI fHUSuwf/afK2wXL1icvZxU13f+yTpmqXypNobr5j3X5EYjhAC29ZoHAKPoJf37M0 3LaIyulD7GNatlRrHgusBcsoWTEyzctt9lCWSswalSfV+xDplPqXR+LTPD9xvOl7 YFJMGI5v56dPGR63ZFmhpBapDWYTYV6XaW3op4EWZT8Su/v2LYNB3HvZKx0hBQoH KwHQlBUUq/ovWolEukGvnRSCfKE2ZJds+GYFT6SCViihco5KwskR2ue8zY1EYU3p Nl9jHlslNghuQ0imxnHC5EX34wCNAyyW3DXh1dOcC/DQLGU7G82kS3SRq6yjJGpM mQCvaMEIUi8ZMeEppGNJsMpM0ocGew== =KmnR -----END PGP SIGNATURE-----