Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
c517ab477f
7 changed files with 60 additions and 2 deletions
|
@ -0,0 +1,14 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://christian.amsuess.com/chrysn"
|
||||
nickname="chrysn"
|
||||
subject="single-line migration"
|
||||
date="2012-11-22T03:14:45Z"
|
||||
content="""
|
||||
i've successfully applied this monster to migrate my repository (as always with such expressions, use it only if you know what it does, and have a backup):
|
||||
|
||||
find . -path './??/??/*' -type d \( -exec python -c 'import sys, hashlib, os; hash = hashlib.md5(sys.argv[1][8:]).hexdigest(); h1 = hash[:3]; h2 = hash[3:6]; os.mkdir(h1) if not os.path.exists(h1) else None; os.mkdir(h1+\"/\"+h2) if not os.path.exists(h1+\"/\"+h2) else None; os.rename(sys.argv[1], h1+\"/\"+h2+\"/\"+sys.argv[1][8:])' '{}' ';' -o -print \) -prune
|
||||
|
||||
when executed in an encrypted git annex object directory, it takes all two-letter directories, executes a python expression on them (in case of failure, printing the file name it failed on), and doesn't continue searching there (-prune avoids error messages about moved-away directories).
|
||||
|
||||
the python expression itself generates the hash described above, generates the required directories (put awkwardly in an `a if b else c` expression to avoid ifs (which wouldn't fit in a single line) and because python still doesn't have a proper mkdir-p function), and moves the found object there. (nb: using the system's `mkdir -p` would trigger [[another bug|bugs/using_old_remote_format_generates_irritating_output]]).
|
||||
"""]]
|
|
@ -1,7 +1,7 @@
|
|||
Managed to find a minimal, 20 line test case for at least one of the ways
|
||||
git-annex was hanging with GHC's threaded runtime. Sent it off to
|
||||
haskell-cafe for analysis.
|
||||
[thread](http://news.gmane.org/gmane.comp.lang.haskell.cafe)
|
||||
[thread](http://thread.gmane.org/gmane.comp.lang.haskell.cafe/99334)
|
||||
|
||||
Further managed to narrow the bug down to MissingH's use of logging code,
|
||||
that git-annex doesn't use. [bug report](http://bugs.debian.org/681621).
|
||||
|
|
|
@ -6,7 +6,7 @@ locally paired systems, and remote servers with rsync.
|
|||
Help me prioritize my work: What special remote would you most like
|
||||
to use with the git-annex assistant?
|
||||
|
||||
[[!poll open=yes 15 "Amazon S3 (done)" 12 "Amazon Glacier" 9 "Box.com (done)" 63 "My phone (or MP3 player)" 15 "Tahoe-LAFS" 6 "OpenStack SWIFT" 23 "Google Drive"]]
|
||||
[[!poll open=yes 15 "Amazon S3 (done)" 12 "Amazon Glacier" 9 "Box.com (done)" 63 "My phone (or MP3 player)" 16 "Tahoe-LAFS" 6 "OpenStack SWIFT" 23 "Google Drive"]]
|
||||
|
||||
This poll is ordered with the options I consider easiest to build
|
||||
listed first. Mostly because git-annex already supports them and they
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
I want to setup a rsync special remote on my server with a non-standard ssh port.
|
||||
|
||||
I tried the following steps:
|
||||
|
||||
git annex initremote rsync-encrypted type=rsync rsyncurl=1.2.3.4:/encrypted-annex encryption=AAAAAAAAA
|
||||
git config remote.rsync-encrypted.annex-rsync-options "-e \'ssh -p 443\'"
|
||||
|
||||
But I just get this error:
|
||||
|
||||
[2012-11-22 21:04:30 CET] read: rsync ["-e","'ssh","-p","443'","--progress","--recursive","--partial","-- partial-dir=.rsync-partial","/home/marco/annex/.git/annex/tmp/rsynctmp/15309/","1.2.3.4:/encrypted-annex"]
|
||||
Missing trailing-' in remote-shell command.
|
||||
|
||||
I tried some ways to escape the config but I don't have a clue. Anybody?
|
|
@ -0,0 +1,13 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmLB39PC89rfGaA8SwrsnB6tbumezj-aC0"
|
||||
nickname="Tobias"
|
||||
subject="comment 1"
|
||||
date="2012-11-22T22:44:11Z"
|
||||
content="""
|
||||
Add the host to your .ssh/config like this
|
||||
|
||||
Host myotherpc
|
||||
HostName 10.0.0.10
|
||||
Port 2222
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawnldTTAP8PAifJUmqhRar6RAWNWlRcencw"
|
||||
nickname="Marco"
|
||||
subject="~/.ssh/config"
|
||||
date="2012-11-23T05:08:47Z"
|
||||
content="""
|
||||
Thank you very much. Works like a charm.
|
||||
"""]]
|
|
@ -0,0 +1,10 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawmL8pteP2jbYJUn1M3CbeLDvz2SWAA1wtg"
|
||||
nickname="Kristian"
|
||||
subject="comment 1"
|
||||
date="2012-11-22T23:38:33Z"
|
||||
content="""
|
||||
By using symlinks gits problems with big files goes away. You simply can't put 600 GB in a git repo - that's the way I use git-annex. Also having files read only by default eliminates the need to store two copies of all files in one form or another.
|
||||
|
||||
|
||||
"""]]
|
Loading…
Reference in a new issue