Merge branch 'master' of ssh://git-annex.branchable.com
This commit is contained in:
commit
1d955d1332
6 changed files with 134 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://joeyh.name/"
|
||||
ip="4.154.0.23"
|
||||
subject="comment 3"
|
||||
date="2012-10-24T22:44:41Z"
|
||||
content="""
|
||||
Google talk does not seem to support PEP. At least, I'm sending something that prosody accepts and that looks like the example at <http://xmpp.org/extensions/xep-0163.html#howitworks>, and it replies with an IQ Error.
|
||||
"""]]
|
|
@ -0,0 +1,13 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://www.openid.albertlash.com/openid/"
|
||||
ip="74.96.185.87"
|
||||
subject="It works!"
|
||||
date="2012-10-24T22:00:31Z"
|
||||
content="""
|
||||
This works great! I first tried it with WORM, no-go. I can see why the SHA backends are so powerful, they appear to circumvent the commits which git usually uses for merging. When I first do the merge, it reports this:
|
||||
|
||||
warning: no common commits
|
||||
|
||||
Compared to how I've managed CD/DVD backups in the past, this is a quantum leap forward, and I don't find it convoluted in comparison. Yes, there is dar, but I prefer this method. In my case, its the perfect solution for original files, which in generally are treated as immutable, and not accessed very often. They are usually large, too! I'm using them for digital pictures.
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,13 @@
|
|||
[[!comment format=mdwn
|
||||
username="Steve"
|
||||
ip="92.104.175.136"
|
||||
subject="web and hook special remotes"
|
||||
date="2012-10-24T23:26:53Z"
|
||||
content="""
|
||||
Hi Joey,
|
||||
|
||||
Thanks for the advice. I had thought of the web special remote; but as you may have noticed from my example, I don't use automount so my DVDs and CDs all get mounted in the same place. (/mnt/cdrom) so the web special remote won't work for me.
|
||||
|
||||
I'll try to play around with the hook special remote this weekend. I had a thought it might be interesting to have it search for the DVDs in some common places or even by parsing the mounted file systems, and allow an override or augmentation through git config.
|
||||
|
||||
"""]]
|
|
@ -0,0 +1,26 @@
|
|||
[[!comment format=mdwn
|
||||
username="Steve"
|
||||
ip="92.104.175.136"
|
||||
subject="no need to merge"
|
||||
date="2012-10-24T23:52:30Z"
|
||||
content="""
|
||||
Albert,
|
||||
|
||||
Thanks for feedback! I'm glad that somebody else found the method I worked out useful. As I'm going to try and turn it into a proper special remote, let me know if there is any particular use case or feature you'd like me to address.
|
||||
|
||||
Note that in my testing, I found that you don't actually need to merge the DVD's branch into the local branch you are using for git annex to be able to find the files on it that are identical to files in your local branch.
|
||||
|
||||
I haven't played around with cloning the repo, but I will try that this weekend. I'm thinking it *might* be necessary to create local branches from the DVD remotes so that they'll get carried along when you clone the repo.
|
||||
|
||||
As far as the repos on the DVD's not having a shared ancestry with main repo, that was a conscious choice that I made. I wanted to add as little extra data to the DVDs as possible since I usually fill them to the brim anyway. I didn't feel that it would be beneficial for the DVD's to know about the history of the main repo and other files that they don't contain. Furthermore, besides all the links and history, you'd be replicating all the files in the main repo that aren't annexed.
|
||||
|
||||
If you want to avoid the error, but still have a local branch for the DVD repos you should be able to do something like the following:
|
||||
|
||||
<b>WARNING:</b> these commands are untested!
|
||||
<pre>
|
||||
git checkout -b disc1 disc1/master
|
||||
git checkout -b disc2 disc2/master
|
||||
</pre>
|
||||
|
||||
Working from the original example, you should then get local branches for the DVDs that don't have a common ancestor with your master local repo. I haven't actually tested that though. Testing will have to wait for this weekend.
|
||||
"""]]
|
66
doc/forum/recover_deleted_files___63__.mdwn
Normal file
66
doc/forum/recover_deleted_files___63__.mdwn
Normal file
|
@ -0,0 +1,66 @@
|
|||
hi,
|
||||
|
||||
i think of use git-annex as the backbone of a archival systems. at first point no distributed storage, just 1 node.
|
||||
but now i run into the topic below ( deleted the "named" symlink of the "object" -- how to recover ?)
|
||||
|
||||
maybe someone can enlighten me...
|
||||
|
||||
thanks,
|
||||
.ka
|
||||
|
||||
// about the version. ( debian-squeeze, bpo )
|
||||
|
||||
$ git-annex version
|
||||
git-annex version: 3.20120629~bpo60+2
|
||||
local repository version: 3
|
||||
default repository version: 3
|
||||
supported repository versions: 3
|
||||
upgrade supported from repository versions: 0 1 2
|
||||
|
||||
// building up a testcase.
|
||||
|
||||
$ git init
|
||||
Initialized empty Git repository in ...test2/.git/
|
||||
|
||||
$ git annex init
|
||||
init ok
|
||||
(Recording state in git...)
|
||||
|
||||
$ echo "aaa" > 1.txt
|
||||
|
||||
$ echo "bbb" > 2.txt
|
||||
|
||||
$ git-annex add .
|
||||
add 1.txt (checksum...) ok
|
||||
add 2.txt (checksum...) ok
|
||||
(Recording state in git...)
|
||||
|
||||
$ git commit -a -m "added 2 files"
|
||||
fatal: No HEAD commit to compare with (yet)
|
||||
fatal: No HEAD commit to compare with (yet)
|
||||
[master (root-commit) fc2a5d7] added 2 files
|
||||
Committer: userhere user <bla@bla>
|
||||
Your name and email address were configured automatically based
|
||||
on your username and hostname. Please check that they are accurate.
|
||||
...
|
||||
2 files changed, 2 insertions(+), 0 deletions(-)
|
||||
create mode 120000 1.txt
|
||||
create mode 120000 2.txt
|
||||
|
||||
// ok, so far standard. i have now 2 files - lets delete one.
|
||||
|
||||
$ rm 2.txt
|
||||
$ ls -l
|
||||
lrwxrwxrwx 1 xp xp 176 24. Okt 22:55 1.txt -> .git/annex/objects/Z6/7q/SHA256-s4--17e682f060b5f8e47ea04c5c4855908b0a5ad612022260fe50e11ecb0cc0ab76/SHA256-s4--17e682f060b5f8e47ea04c5c4855908b0a5ad612022260fe50e11ecb0cc0ab76
|
||||
|
||||
// eek, delete of 2.txt was a bad idea (it was just the symlink) -- try to recover...
|
||||
|
||||
$ git-annex fix
|
||||
$ git-annex fsck
|
||||
fsck 1.txt (checksum...) ok
|
||||
$ ls
|
||||
1.txt
|
||||
|
||||
// still not here.. how to recover the link to 2.txt ???
|
||||
// i still see the content of the file in the object folder
|
||||
// if I want to use git-annex as the backend of a archival system, this is important.
|
|
@ -0,0 +1,8 @@
|
|||
[[!comment format=mdwn
|
||||
username="http://ciffer.net/~svend/"
|
||||
ip="2001:1938:81:1ff::2"
|
||||
subject="git checkout"
|
||||
date="2012-10-24T22:50:05Z"
|
||||
content="""
|
||||
You can use `git checkout -- file` to restore the link. `git status` will display information for restoring the file.
|
||||
"""]]
|
Loading…
Reference in a new issue