rsyn sync soft link remains unchanged

 

#!/bin/bash

rsync --port=873 -vzrtopgLK --progress --delete --password-file=/tuandai/rsync/rsync.password --exclude-from=/tuandai/rsync/exclude_list_haproxy [email protected]::mycode/haproxy/haproxy_bugu/haproxy /etc

 

 

-L, --copy-links transform symlink into referent file/dir treat symlinks as files or directories

-K, --keep-dirlinks treat symlinked dir on receiver as dir

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324592184&siteId=291194637