📜  rsync 跳过非常规文件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:50.759000             🧑  作者: Mango

代码示例1
# Error:
rsync skipping non-regular file

# Explanation:
# As mentioned in the source, this error often occurs when trying
# to copy symlinks.

# Solutions:
# - To copy them as symlinks, use --links
# - To copy the files they are pointing to, use --copy-links
# - Use -a instead of -r. -a means to reproduce file hierarchies, 
#    including special files and permissions. -r only means to recurse
#   on directories. For a backup, you want -a.