forum/Archive USB drive not working as documentedgit-annexhttp://git-annex.branchable.com/forum/Archive_USB_drive_not_working_as_documented/git-annexikiwiki2014-07-20T01:33:25Zcomment 1http://git-annex.branchable.com/forum/Archive_USB_drive_not_working_as_documented/comment_1_59de1e101e5e427abb1df3a71c6f1b04/Mesar2014-07-20T00:50:15Z2014-07-20T00:50:15Z
<p>When you did:</p>
<pre><code>marshal@home[~/annex]> git-annex copy --auto --to usbdrive
</code></pre>
<p>this copies the file content (see .git/annex/objects/*), and updates the metadata in both repos.
The reason why you are not seeing the files on the usb is because the metadata has not been merged into your master branch.
This is verified by the output of:</p>
<pre><code>marshal@home[/media/marshal/Sony USB/annex]> git-annex sync laptop
</code></pre>
<p>To verify that you indeed do have the files and their content, don't do the above sync, but instead do:</p>
<pre><code>marshal@home[/media/marshal/Sony USB/annex]> git annex merge
</code></pre>
<p>the local metadata in the sync/git-annex branch will be merged in, and the local directory will be populated with the new symlinks to the content which you already have in the /media/marshal/Sony USB/annex/.git/annex/objects/*</p>
comment 2http://git-annex.branchable.com/forum/Archive_USB_drive_not_working_as_documented/comment_2_3541fdd31d398a494a8fa452ac2c277f/Marshal2014-07-20T01:33:25Z2014-07-20T01:33:25Z
<p>Thank you Mesar!</p>
<p>I think I'm beginning to understand. Indeed, the files were there on the usbdrive repo (in .git/annex/objects). No need to sync or merge. I was able to drop a file from the laptop repo and get it back from the usbdrive.</p>
<p>What is a bit unnerving, is that the symlinks are not present on the usbdrive, so it looks empty except for the .git directory.</p>
<p>Thanks so much for clearing this up. More to explore...</p>