일부 심볼릭 링크를 유지하면서 내 웹 사이트를 서버에 rsync하려고합니다. 나는 몇 가지 문서를 학년 때 락커룸이이 트릭 한 가지 문제를 제외하고rsync php 파일로의 심볼릭 링크
rsync -vra --links
수행해야합니다 : 그것은 폴더로 이동되지 않습니다 심볼릭 링크를 복사하지 않습니다, 그러나이 경우에는 파일 (.PHP,하지만 난 중요하다고 생각하지 마십시오.) 그것은 기본적으로 깨집니다.
이 링크는 작동합니다
htdocs/content/uploads -> /data/sharedstorage/uploads
이 링크
을 생략됩니다htdocs/content/config.php -> /data/sharedstorage/config.php
사람이 내가이 문제를 해결할 수있는 방법을 알고 있나요?
추신 : 원래 심볼릭 링크가 링크 된 파일을 복사하고 싶지 않기 때문에 심볼릭 링크를 유지하고 싶습니다.
심볼릭 링크로 인해 건너 뛰었던 이유는 무엇이라고 생각합니까? 전체 rsync 명령을 줄 수 있습니까? –
rsync -vrla --delete --update --dry 실행 --exclude = .git --exclude = htdocs/.htaccess --exclude = .git * --exclude = *. old --exclude =. *. 이전 --exclude = *. dist --exclude =. *. dist --exclude = www --exclude =. * --exclude = 공급 업체/bin --exclude = 공급 업체/큐브 --exclude = 공급 업체/johnpbloch - exclude = vendor/koodimonni --exclude = vendor/koodimonni-language --exclude = * .json --exclude = Gruntfile.js --exclude = vvv * --exclude = wp-cli.yml --exclude = *. lock --exclude = htdocs/content/themes/starter/* .json --exclude = htdocs/content/themes/htdocs/content/themes/starter/* .txt –
--exclude = htdocs/content/themes/starter/* .md --exclude = htdocs/content/themes/스타터/리소스/자산/bower --exclude = htdocs/content/themes/starter/resources/assets/scss --exclude = htdocs/content/themes/starter/resources/assets/js/*/--exclude = htdocs/content/테마/스타터/리소스/자산/css/**/*./user @ server : 전체 명령입니다. -l은 --links와 똑같이해야합니다 (모두 시도). 내가 올바르게 체크하면이 파일들을 제외하지 않습니다. –