forum/Using a glacier remote as a backupgit-annexhttp://git-annex.branchable.com/forum/Using_a_glacier_remote_as_a_backup/git-annexikiwiki2015-07-06T20:06:29Zcomment 1http://git-annex.branchable.com/forum/Using_a_glacier_remote_as_a_backup/comment_1_bb6022943ec739b1e80351c76f259e89/joey2015-05-11T17:03:58Z2015-05-11T16:58:01Z
<p>Your status shows that test.txt is deleted.
<code>git annex get</code> does not un-delete files, it just gets the <em>content</em>
of a file (whether that file is deleted or not).</p>
<p>You can use normal git commands to un-delete the file. Ie, "git checkout
text.txt". If you're using direct mode, you can't use such commands, but
can use "git annex undo" to undo a deletion.</p>
<p>Normally, if you have a bare repo, you'll want to clone it to get a non-bare
repo. I suspect you did something else that resulted in your repo being in
this state were files are deleted.</p>
comment 2http://git-annex.branchable.com/forum/Using_a_glacier_remote_as_a_backup/comment_2_41d47f0ca2e05e3296face5f89b819da/Andreas2015-05-12T06:52:04Z2015-05-12T06:52:04Z
<p>Actually, I just removed all annexed files to try out disaster recovery. I stumbled across the <code>undo</code> command. Unfortunately, it does not seem available on Ubuntu running version 5.20141125 shipped by vivid (<code>git-annex: Unknown command 'undo'</code>).</p>
<p>Am I missing something, or how do I get a version supporting <code>undo</code>?</p>
<p>thanks
Andreas</p>
comment 3http://git-annex.branchable.com/forum/Using_a_glacier_remote_as_a_backup/comment_3_e572b7bd25b4e7f6c6f83c7354d7407f/joey2015-07-06T20:06:29Z2015-07-06T20:01:45Z
git-annex undo first appeared in version 5.20141203 of git-annex.