Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to use rsync to maintain a backup copy of my Aperture library. When I run the sync command to see what would happen this is the outcome:

rsync --dry-run -r "/Volumes/Data/Aperture Library.aplibrary" "/Volumes/Backup"

skipping non-regular file "Aperture Library.aplibrary/Database/BigBlobs.apdb"
skipping non-regular file "Aperture Library.aplibrary/Database/Faces.db"
skipping non-regular file "Aperture Library.aplibrary/Database/History.apdb"
skipping non-regular file "Aperture Library.aplibrary/Database/ImageProxies.apdb"
skipping non-regular file "Aperture Library.aplibrary/Database/Library.apdb"
skipping non-regular file "Aperture Library.aplibrary/Database/Properties.apdb"

The "file" command says that at least the ".db" file is a "SQLite 3.x database". How can I sync these files with rsync?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

It would seem those files are symlinks.

To copy them as symlinks, use --links.

To copy the files they are pointing to, use --copy-links.

For details see the SYMBOLIC LINKS section in man rsync.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.