summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-09-21 16:05:50 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-09-21 16:05:50 -0400
commit6fd677f716c77a47de979d4c0c261cff116dea11 (patch)
tree9c95d547cb1011359da1ece77896a067cb4cf03e
parent861e9b59a66ab6d66483cc23fb10b67094bfb7d2 (diff)
response
-rw-r--r--doc/forum/Use_case__58___Main_machine__44___portable_drive__44___backup_machine/comment_2_0b778710b23eab1413256e289f0aa180._comment32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/forum/Use_case__58___Main_machine__44___portable_drive__44___backup_machine/comment_2_0b778710b23eab1413256e289f0aa180._comment b/doc/forum/Use_case__58___Main_machine__44___portable_drive__44___backup_machine/comment_2_0b778710b23eab1413256e289f0aa180._comment
new file mode 100644
index 000000000..9a4530b41
--- /dev/null
+++ b/doc/forum/Use_case__58___Main_machine__44___portable_drive__44___backup_machine/comment_2_0b778710b23eab1413256e289f0aa180._comment
@@ -0,0 +1,32 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2016-09-21T19:59:25Z"
+ content="""
+Use git-annex repositories on both the laptop and the thumb drive.
+
+You can start by setting up the repository on the thumb drive,
+and then git clone it to the laptop.
+
+Use `git annex direct` to make them use direct mode, so that
+files can be edited.
+
+You can run the git-annex assistant in the repository on the laptop
+(~/annex is the usual place for such a repository). This way
+changes to files there will automatically be committed to git.
+
+There's not currently a good way to have the assistant also commit
+any files that were added to the thumb drive, or merge in changes
+from the laptop to the thumb drive. Running the assistant in the repository
+on the thumb drive would take care of both, but fails when the thumb
+drive gets unplugged.
+
+What you can do is write a simple shell script to sync up the thumb drive.
+Something like this:
+
+ #!/bin/sh
+ set -e
+ cd /media/thumbdrive
+ git annex add
+ git annex sync -m "syncing thumb drive"
+"""]]