git-annex/doc/git-annex-uninit/comment_5_53358bdd6093e2fb787df8de7190c5fd._comment

18 lines
665 B
Text
Raw Normal View History

2021-01-14 22:15:12 +00:00
[[!comment format=mdwn
username="eric.w@eee65cd362d995ced72640c7cfae388ae93a4234"
nickname="eric.w"
avatar="http://cdn.libravatar.org/avatar/8d9808c12db3a3f93ff7f9e74c0870fc"
subject="comment 5"
date="2021-01-14T22:15:12Z"
content="""
A faster way of doing uninit is the following:
```cp --no-clobber --dereference --recursive --preserve=all --reflink=auto --verbose ./git_annex_repo/your_symlinks/ ./target_dir/```
This will simply copy (thin COW copy) symlinks (dereferenced) as normal files preserving the mtime, etc. the resulting ./target_dir/ will have your files if they existed in this annex or broken symlinks if the files were not here.
"""]]