1/20/2023 0 Comments Git annex instead of dropbox![]() Simple!Īn easy file sharing alternative, Ryno Motor's Microcycle, and Satellite tech with Ryan from Ocens. efficient backup program borg - Search and save shell snippets without leaving your terminal Pydio. ownCloud - :cloud: ownCloud web server core (Files, DAV, etc. Only known file contents will be reinjected. So probably git-annex is the perfect solution for data sync. For example, if a files content has been lost and you have a backup, you can restore the backup and reinject it into your local repository. Well this post is where the link between git-annex and ownCloud should be emphasized: Use ownCloud as your frontend tool for accessing the data while letting git-annex do the backend (aka backup) job. The cloud solution that seems to fit best is. ![]() While this might sound like a pretty easy task, it does have some peculiarities to be taken into consideration. The manual page offers plenty of information for you to keep learning about this incredibly powerful tool.However, I dont know if it possible to save everything encrypted over there. Keep learningįor more information, issue the command man git-annex. Congratulations, you’ve used git-annex to sync a local folder to a locally mounted cloud location. To actually sync the content, the command would then be (run in each location):Īnd there you go: Both locations are now in sync. Now, change into the ~/Dropbox/annex folder and issue the same command:Īt this point, all we’ve done is create symlinks between the two locations. Change into the ~/myrepo folder and issue the command: With each location aware of the other, let’s sync them. Git remote add UbuntuServer ~/myrepo Sync ’em Next, change into the ~/Dropbox/annex folder and make it aware of the ~/myrepo folder with the command: To do this, change into the ~/myrepo folder, and then make it aware of Dropbox with the command: Initialize the folder with git-annex (and name it Dropbox) with the command:įor our next trick, we must make the two locations aware of one another. Because this folder must also be initialized, we probably don’t want to initialize the entire contents of the ~/Dropbox folder, so let’s create a subfolder called annex with the command:Ĭhange into that new folder with the command cd annex. We already have our ~/Dropbox folder, so change into that with the command cd ~/Dropbox. Git commit -m "Added a test file" Adding the second location Once you’ve created the test file, add it with git annex using the command:īecause we’re using git, you must commit the new file (otherwise git won’t know about it). For testing purposes, you can create an empty file with the command touch test1. Next we’ll move some files into ~/myrepo. I’m going to name this UbuntuServer, so the initialization command would be: Now we initialize the repository with git-annex, only with the addition of a name. Next we must initialize the repository with the command: Open a terminal window and issue the command:Ĭhange into that new folder with the command cd ~/myrepo. First, we’re going to create a local directory. I’ll assume the Dropbox folder is in ~/Dropbox. SEE: 20 quick tips to make Linux networking easier (free TechRepublic PDF) Creating a repositoryĪs I mentioned, we’re going to sync a local folder with a locally mounted Dropbox folder. Once the installation completes, you’re ready to go. The git-annex installation does pull down some 325 dependencies (depending on what you already have installed on your machine), so it can take a bit of time (dictated by the speed of your network). So to install both, open a terminal and issue the following command: However, you want to first make sure you have git installed on the machine. You can install git-annex with a single command. Oracle Linux checklist: What to do after installation This Linux learning path will help you start using the OS like a proītop is a much-improved take on the Linux top command I’ll demonstrate on Ubuntu Server 18.04 and will sync a locally mounted Dropbox folder to a local folder on the server. I’m going to demonstrate the command-line version here (I’ll demonstrate the GUI method in a future how-to). There are a couple of ways to do this: with a GUI tool and from the command line. I want to walk you through the steps of installing and using git-annex to sync two locations. See: Cloud computing policy (Tech Pro Research) Even better, unlike standard git, git-annex allows you to sync large files. ![]() It’s not the easiest method of doing this, but it’s one that offers some pretty great potential. With git-annex you can create repositories on a local machine (one of which can be, say, a locally mounted Dropbox share) and then keep the files housed within in sync. You know GitHub and many other git-related tools. The git-annex tool lets you sync two locations on Ubuntu Server. How to sync files between locations with git-annex
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |