![]() If you want to store data (for duplication) on a remote server using ssh you can use a remote of type "rsync" and encrypt the data in many fashions (GPG with hybrid is the best). Then, after your changes, you need to add it again to git-annex and commit your changes. If you want to make changes to a file, you first need to "unlock" it in git-annex, which mean the symbolic link is replaced by the file itself and is no longer in read-only. Lrwxr-xr-x 1 solene wheel 180 May 12 18:38 hello ->. rw-r-r- 1 solene wheel 12 May 12 18:38 hello The files are not stored in the git repository, it will only contains metadata. ![]() When you want to register a file in git annex, you need to use "git annex add" to add it and then "git commit" to make it permanent. ![]() Mkdir ~/MyDataLibrary & cd ~/MyDataLibrary The first step is to create a repository which is based on git, then we will tell git-annex to init it too. Most git-annex commands have a dedicated man page, but can also provide a simpler help by using "git annex help somecommand". Git-annex may not be easy to understand at first, I suggest you try locally to grasp its purpose. You don't really want to use git-annex with files you edit everyday, it doesn't work well because the process can be a bit tedious. It works very well for files that are not changing much, I call them "static files", they are music, videos, pictures, documents. We are working with digital files that can be copied here so the analogy doesn't fully work, but you could want to put your data in an external hard drive but not everything, and you may want to have some data on multiples devices for safety reasons, git-annex automates this. Git-annex is meant to help you manage your data like you would manage books in a library, you have a database telling you where the books are and you can find them on the shelves, or at least you can know who borrowed the book. Since I really missed it, I'm now back to it and I think it's time to share about this wonderful piece of software. I've been relying on it a few years ago but it was really complicated for me to compile it and I gave up. Now that git-annex is available as a package on OpenBSD I can use it again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |