Scroll to navigation

git-annex-migrate(1) General Commands Manual git-annex-migrate(1)


git-annex-migrate - switch data to different backend


git annex migrate [path ...]


Changes the specified annexed files to use the default key-value backend (or the one specified with --backend). Only files whose content is currently available are migrated.

Note that the content is also still available using the old key after migration. Use git annex unused to find and remove the old key.

Normally, nothing will be done to files already using the new backend. However, if a backend changes the information it uses to construct a key, this can also be used to migrate files to use the new key format.

When you have multiple repositories that each contain a copy of a file, it's best to run migrate in all of them.


Specify the new key-value backend to use for migrated data.
Force migration of keys that are already using the new backend.
The git-annex-matching-options(1) can be used to specify files to migrate.
git-annex-common-options(1) can be used.
Keys often include the size of their content, which is generally a useful thing. In fact, this command defaults to adding missing size information to keys. With this option, the size information is removed instead.
One use of this option is to convert URL keys that were added by git-annex addurl --fast to ones that would have been added if that command was run with the --relaxed option. Eg:

git-annex migrate --remove-size --backend=URL somefile






Joey Hess <>