forum/How to sync data down from a 'full backup'?git-annexhttp://git-annex.branchable.com/forum/How_to_sync_data_down_from_a___39__full_backup__39____63__/git-annexikiwiki2015-02-10T01:55:06Zcomment 1http://git-annex.branchable.com/forum/How_to_sync_data_down_from_a___39__full_backup__39____63__/comment_1_c4e972c8635f2fa460cd6621f3d993c6/joey2015-02-09T20:44:24Z2015-02-09T20:37:49Z
<p>Yes, it absolutely does. On Android, git-annex defaults to making
its repository be a "source" repository, which means it doesn't try
to get a copy of every file. You can edit the repository in the webapp,
and select "client" and it will go ahead and download every file it can
get. See <a href="http://git-annex.branchable.com/preferred_content/standard_groups/">standard groups</a>.</p>
<p>It sounds like you might want to have the android device only
get copies of certian files, and ignore others (the raws).
Doing that is a little more complicated; it involves writing a
<a href="http://git-annex.branchable.com/forum/preferred_content/">preferred content</a> expression. You can do this by first exiting
the webapp, and the at the git-annex app's console:</p>
<pre><code>cd /sdcard/annex
git annex wanted . "include=sheetmusic/* and exclude=raws/*"
</code></pre>
<p>Then when you start the webapp back up, it will get the sheet music
and not the raws. Adjust paths in that to suite..</p>
comment 2http://git-annex.branchable.com/forum/How_to_sync_data_down_from_a___39__full_backup__39____63__/comment_2_e06abc9a2f7cf055523f3d35e4eed9bc/robert_hickman2015-02-10T01:40:47Z2015-02-10T01:40:47Z
<p>Thank you Joey, The setting should be added to the local, with the remote set to 'full backup'?</p>
<p>I've tried updating that setting to client but it still doesn’t seem to be working. Looking at the log, there is a line 'fatal: not a valid object name refs/remotes/adesktop_annex/annex/direct/master'. Also it appears to have attempted to sync but quit on an invalid FAT file name. Should this stop syncing altogether? Or can it just ignore/report these problem files.</p>
<p>Also thanks for saying how to do part-downloads, I was wandering if it could do that.</p>
comment 3http://git-annex.branchable.com/forum/How_to_sync_data_down_from_a___39__full_backup__39____63__/comment_3_81d128be0fa60475062e795f34d920f7/robert_hickman2015-02-10T01:49:39Z2015-02-10T01:49:39Z
<p>I'm also seeing a duplicate parent error at the end of the log.</p>
<p>How can I clear the log? It took quite a while to get this running so there is quite a bit of irreverent stuff in it.</p>
comment 4http://git-annex.branchable.com/forum/How_to_sync_data_down_from_a___39__full_backup__39____63__/comment_4_43615e11f1c6d08f5850458d540f5bac/robert_hickman2015-02-10T01:55:06Z2015-02-10T01:55:06Z
<p>Last log content:</p>
<p>(started...) Already up-to-date. error: duplicate parent c2aa8406693d1a3cdec09fb3be8002865cbc8d36 ignored warning: no threads support, ignoring --threads [2015-02-10 01:44:51 GMT] Pusher: Syncing with adesktop_annex warning: no threads support, ignoring --threads fatal: Unable to create '/home/annex/annex/gc.pid.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue. To ssh://annex@git-annex-a-desktop-annex_22_annex/~/annex/ e99e004..5b09ad8 git-annex -> synced/git-annex c2aa840..f64d9e3 annex/direct/master -> synced/master error: Ref refs/heads/synced/git-annex is at 5b09ad85ff8d0ba013e4e135e386818eec0cc810 but expected e99e0040176275beb7553f89774f1b14697fccd8 error: Ref refs/heads/synced/master is at e3482dc007f109d0773cf50fd0de2ca2c213cc24 but expected c2aa8406693d1a3cdec09fb3be8002865cbc8d36 remote: error: failed to lock refs/heads/synced/git-annex remote: error: failed to lock refs/heads/synced/master To ssh://annex@git-annex-a-desktop-annex_22_annex/~/annex/ ! [remote rejected] git-annex -> synced/git-annex (failed to lock) ! [remote rejected] annex/direct/master -> synced/master (failed to lock) error: failed to push some refs to 'ssh://annex@git-annex-a-desktop-annex_22_annex/~/annex/' Already up-to-date. error: duplicate parent e3482dc007f109d0773cf50fd0de2ca2c213cc24 ignored warning: no threads support, ignoring --threads To ssh://annex@git-annex-a-desktop-annex_22_annex/~/annex/ e3482dc..e97d44a annex/direct/master -> synced/master</p>