https:\/\/serverfault.com\/questions\/971173\/how-to-copy-ownership-and-permissions-using-rsync-but-not-the-files<\/a><\/p>\n\n\n\nbe carfeul, it took me a lot of time, to get another backup, cause i missunderstood the commands of this link. it means <\/p>\n\n\n\n
find . -exec chmod -v --reference='{}' \/path\/to\/target\/'{}' \\;<\/code><\/pre>\n\n\n\ncopies the permissions from . (the folder you are in) to the \/path\/to\/target\/. – and not vice versa.<\/p>\n\n\n\n
to copy the permissions from a target to the folder you’re currently inside, you need to use<\/p>\n\n\n\n
find . -exec chmod -v –reference=\/path\/to\/target\/'{}‘ ‚{}‘ \\;<\/p>\n\n\n\n
…same as for chown….<\/p>\n\n\n\n
so, in general: if you run into mysql-permission-problems check the rights of the entire hirachy and the owner of \/ ! this may help!<\/p>\n","protected":false},"excerpt":{"rendered":"
after a reboot i could not start mysql anymore. [ERROR] mysqld: Can’t create\/write to file ‚\/usr\/local\/var\/mysql\/aria_log_control‘ after a while i noticed that man was not working anymore: man-db: error while loading shared libraries: libmandb-2.8.1.so slowly i started to understand that something serious did happen to the system. after executing chmod o+x . from \/ directory,… <\/p>\n
Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":4,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":457,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/posts\/451\/revisions\/457"}],"wp:attachment":[{"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.comfine.de\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}