I have a special remote configured to/from which I can copy files correctly. I would like to be prevent some annexed files to be copied to this remote, automatically (in other words, without excluding them manually on the command line) How can this be done?
This is a job for preferred content!
For example, you could configure the remote to not want any flac files, so only mp3, ogg, etc files should be stored on that remote:
This configuration will automatically be honored if you use
git annex sync --content
(or the assistant). If you manually usegit annex copy
to copy files to the remote, you'll need to add the--auto
flag to make it honor the preferred content settings.