rsync prints "skipping non-regular file" for what appears to be a regular directory rsync prints "skipping non-regular file" for what appears to be a regular directory unix unix

rsync prints "skipping non-regular file" for what appears to be a regular directory


Are you absolutely sure those individual files are not symbolic links?

Rsync has a few useful flags such as -l which will "copy symlinks as symlinks". Adding -l to your command:

rsync -rtvpl /source/backup /destination

I believe symlinks are skipped by default because they can be a security risk. Check the man page or --help for more info on this:

rsync --help | grep link

To verify these are symbolic links or pro-actively to find symbolic links you can use file or find:

$ file /path/to/file/path/to/file: symbolic link to `/path/file`$ find /path -type l/path/to/file


Are you absolutely sure that it's not a symbolic link directory?

try a:

file /source/backup/myfiles/foo

to make sure it's a directory

Also, it could very well be a loopback mounttry

mount

and make sure that /source/backup/myfiles/foo is not listed.


You should try the below command, most probably it will work for you:

rsync -ravz /source/backup /destination