Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2015-05-12 13:00:22 -04:00
commit 587b2e9014
4 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://me.yahoo.com/a/e1w.8yMTnpUh.5fOXneP92pTdy23XJPwx84uLSM-#aca7c"
nickname="Michael"
subject="re: backup my data to blue ray disks"
date="2015-05-11T21:13:19Z"
content="""
Thank you for your response. The disks are BD-R, so they are not rewritable. My experience in the past with rewritable disks has been that they work about as well as the average TV infomercial product. Do you have any opinions or suggestions on using par2 files on the disks?
"""]]

View file

@ -0,0 +1,32 @@
[[!comment format=mdwn
username="https://sunny256.wordpress.com/"
nickname="sunny256"
subject="Create symlink in the root directory"
date="2015-05-12T13:04:18Z"
content="""
My way of dealing with this is to create a symlink in the root directory that point to the root directory, like
[[!format sh \"\"\"
$ cd /
$ sudo ln -sv . compname
[sudo] password for sunny: hunter2
'compname' -> '.'
$ ls -l compname
lrwxrwxrwx 1 root root 1 May 12 14:52 compname -> .
$
\"\"\"]]
where `compname` is the hostname for the computer. Now you can create paths like
[[!format sh \"\"\"
git remote add comp-a /comp-a/home/my_user/data/repo
git remote add comp-b /comp-b/home/my_user/data/repo
\"\"\"]]
This is also useful in other scripts where fetching data from the right directory on the wrong computer is bad. Also, this is a cheap way for a script to determine which computer it's running on:
[[!format sh \"\"\"
test -L \"/comp-a\" && echo Running on computer comp-a
\"\"\"]]
"""]]

View file

@ -0,0 +1,13 @@
Hello everyone,
I have some PDF documents in a git annex repository. I appended a page to (several) of these PDF documents the following way:
- `git annex edit file.pdf`
- Append page to file.pdf
- `git annex add file.pdf`
- `git commit`
If I now look at file.pdf it will not have the appended page. But if do `git annex edit file.pdf` again I will get the version with the appended page. `git annex add file.pdf` and the page "disappears" again. Anyone got any tips on how to solve this "mystery"?
All the best,
Per

View file

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawnwNDA50ZupMvOgpgDqzDRyu5B-mYlVwa4"
nickname="Andreas"
subject="comment 2"
date="2015-05-12T06:52:04Z"
content="""
Actually, I just removed all annexed files to try out disaster recovery. I stumbled across the `undo` command. Unfortunately, it does not seem available on Ubuntu running version 5.20141125 shipped by vivid (`git-annex: Unknown command 'undo'`).
Am I missing something, or how do I get a version supporting `undo`?
thanks
Andreas
"""]]