diff --git a/doc/bugs/git_annex_sync_--content_not_syncing_all_objects/comment_6_4540c31acd63626fbad9bde487ec3005._comment b/doc/bugs/git_annex_sync_--content_not_syncing_all_objects/comment_6_4540c31acd63626fbad9bde487ec3005._comment new file mode 100644 index 0000000000..54bce5df82 --- /dev/null +++ b/doc/bugs/git_annex_sync_--content_not_syncing_all_objects/comment_6_4540c31acd63626fbad9bde487ec3005._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="stp" + ip="91.34.113.105" + subject="Any update" + date="2014-10-01T12:46:34Z" + content=""" +Any update? +"""]] diff --git a/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_7_f53d0542c9da38e0f6339df8c49c87db._comment b/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_7_f53d0542c9da38e0f6339df8c49c87db._comment new file mode 100644 index 0000000000..6d6631bf08 --- /dev/null +++ b/doc/bugs/incremental_fsck_should_not_use_sticky_bit/comment_7_f53d0542c9da38e0f6339df8c49c87db._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="stp" + ip="24.134.205.34" + subject="Any update" + date="2014-10-01T12:48:06Z" + content=""" +Any update? +"""]] diff --git a/doc/devblog/day_-4__forgetting/comment_9_d9121a5172f02df63364f19eae87d011._comment b/doc/devblog/day_-4__forgetting/comment_9_d9121a5172f02df63364f19eae87d011._comment new file mode 100644 index 0000000000..a104c2dd26 --- /dev/null +++ b/doc/devblog/day_-4__forgetting/comment_9_d9121a5172f02df63364f19eae87d011._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="stp" + ip="24.134.205.34" + subject="Any update" + date="2014-10-01T12:47:47Z" + content=""" +Any update? +"""]] diff --git a/doc/forum/This_account_is_restricted_by_rssh._Allowed_commands:_scp_rsync__160__.mdwn b/doc/forum/This_account_is_restricted_by_rssh._Allowed_commands:_scp_rsync__160__.mdwn new file mode 100644 index 0000000000..932c78a9a8 --- /dev/null +++ b/doc/forum/This_account_is_restricted_by_rssh._Allowed_commands:_scp_rsync__160__.mdwn @@ -0,0 +1,5 @@ +Hello, + +I'm using the git-annex assistant (in Mac Mavericks) and I'm trying to create a new remote rsync repo, I have the details and everything but I can't do it over ssh, I need the call to use rsync otherwise I get: **This account is restricted by rssh. Allowed commands: scp rsync ** . Can this be changed manually? How can I create a remote rsync repo? + +Thanks diff --git a/doc/forum/git_annex_ls___47___metadata_in_git_annex_whereis/comment_3_24c54ed70220974b98700bf717d1e770._comment b/doc/forum/git_annex_ls___47___metadata_in_git_annex_whereis/comment_3_24c54ed70220974b98700bf717d1e770._comment new file mode 100644 index 0000000000..67ff59d324 --- /dev/null +++ b/doc/forum/git_annex_ls___47___metadata_in_git_annex_whereis/comment_3_24c54ed70220974b98700bf717d1e770._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="sudoman" + ip="216.15.125.93" + subject="ls symlink workaround; idea for a solution" + date="2014-09-29T18:58:23Z" + content=""" +as a workaround, you could make a bash alias for `ls -l` -> `ls -lL`. the problem with this is that links to other links are fully dereferenced. + +what looks like this in a non-git-annex directory with `ls -lh`: + + total 3.8M + -rw-r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 42x3551_02.pdf + lrwxrwxrwx 1 sudoman sudoman 14 Sep 29 14:00 tmp -> 42x3551_02.pdf + +looks like this in an indirect git annex repo with `ls -lhL`: + + total 7.5M + -r--r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 42x3551_02.pdf + -r--r--r-- 1 sudoman sudoman 3.8M Sep 29 13:56 tmp + + +the ls alias is a bit hackish, but for some purposes it's an improvement. + +rsync may work as desired when using a command like `rsync -l --safe-links` (haven't tried it. users might want to experiment by adding `--exclude` to that command.) + + +a potential solution for ls (and cp) could be the inclusion of a patched version under `git annex util ls`. writing shim programs using `LD_PRELOAD` instead of patching may drastically reduce the amount of code needing future security updates. + +"""]] diff --git a/doc/forum/using_git-annex_with_lightroom.mdwn b/doc/forum/using_git-annex_with_lightroom.mdwn new file mode 100644 index 0000000000..605f2b9030 --- /dev/null +++ b/doc/forum/using_git-annex_with_lightroom.mdwn @@ -0,0 +1,6 @@ +I'm using git-annex to sync my photos across multiple computers, and it works beautifully. I would also like to sync Lightroom catalogues. The photo editing program creates a *.lrdata directory where it stores the edits in its own tree format. Merging two such directories obviously creates a mess. + +Is there an elegant way to tell git-annex to treat the whole directory as a single file and overwrite the whole directory structure at once? I'm guessing the same problem occurs with mac os packages. + +Many thanks! +Alex diff --git a/doc/tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl b/doc/tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl index 76ad336494..3e2bd9bce0 100644 --- a/doc/tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl +++ b/doc/tips/dumb_metadata_extraction_from_xbmc/git-annex-xbmc-playcount.pl @@ -1,7 +1,24 @@ #! /usr/bin/perl -w -my $dbpath="/home/video/.xbmc/userdata/Database/MyVideos75.db"; +# we want to operate on relative links, so set this to the common prefix +# to the git annex repo my $prefix="/home/media/video/"; +# this is the directory for the XBMC database +my $path = '/home/video/.xbmc/userdata/Database/'; + +# no user-serviceable parts below + +# list videos database, find the latest one +# modified version of +# http://stackoverflow.com/questions/4651092/getting-the-list-of-files-sorted-by-modification-date-in-perl +opendir my($dirh), $path or die "can't opendir $path: $!"; +my @flist = sort { -M $a <=> -M $b } # Sort by modification time + map { "$path/$_" } # We need full paths for sorting + grep { /^MyVideos.*\.db$/ } + readdir $dirh; +closedir $dirh; + +my $dbpath=$flist[0]; my @lines = `echo 'SELECT playCount, path.strPath, files.strFileName FROM movie JOIN files ON files.idFile=movie.idFile JOIN path ON path.idPath=files.idPath;' | sqlite3 $dbpath`; for (@lines) { @@ -11,7 +28,6 @@ for (@lines) { if ($count !~ /[0-9]/) { $count = 0; } - $dir =~ s/$prefix//; if ($file =~ s#stack://##) { for (split /,/, $file) { s/$prefix//; @@ -22,6 +38,7 @@ for (@lines) { } } else { + $dir =~ s/$prefix//; my @cmd = (qw(git annex metadata --set), "playCount=$count", "$dir$file"); system(@cmd); } diff --git a/doc/tips/file_manager_integration/comment_3_e7096737268cf66fce2709e9e4937f51._comment b/doc/tips/file_manager_integration/comment_3_e7096737268cf66fce2709e9e4937f51._comment new file mode 100644 index 0000000000..1c3c7eeb58 --- /dev/null +++ b/doc/tips/file_manager_integration/comment_3_e7096737268cf66fce2709e9e4937f51._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="https://id.koumbit.net/anarcat" + ip="72.0.72.144" + subject="comment 3" + date="2014-10-01T02:02:39Z" + content=""" +for some reason this doesn't work in gnome2. i had to add the shortcuts in /usr/share/nautilus-scripts (iirc). --[[anarcat]] +"""]] diff --git a/doc/tips/using_the_web_as_a_special_remote/comment_8_3f32d536f51d5e9908953caf5736b0a0._comment b/doc/tips/using_the_web_as_a_special_remote/comment_8_3f32d536f51d5e9908953caf5736b0a0._comment new file mode 100644 index 0000000000..c3403500a3 --- /dev/null +++ b/doc/tips/using_the_web_as_a_special_remote/comment_8_3f32d536f51d5e9908953caf5736b0a0._comment @@ -0,0 +1,16 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawnvr2UPmp7ABeH0yI8KGAHCqFhl91Ju4Tc" + nickname="Calvin" + subject="HTTP Authentication?" + date="2014-09-29T21:37:44Z" + content=""" +Hi! + +I have a somewhat interesting use case. My course notes require HTTP authentication. This is possible with wget, but is there any way to make git annex do it? + +[wget authentication stuff!](http://stackoverflow.com/questions/4272770/wget-with-authentication) + +It would be nice to have the user and pass encrypted with GPG too. This might be a strange use case, but I can see other people wanting to do something like this in the future. + +Thanks! +"""]] diff --git a/doc/tips/using_the_web_as_a_special_remote/comment_9_b420b1f320d620a9909cce5086c549bf._comment b/doc/tips/using_the_web_as_a_special_remote/comment_9_b420b1f320d620a9909cce5086c549bf._comment new file mode 100644 index 0000000000..d6b194d69a --- /dev/null +++ b/doc/tips/using_the_web_as_a_special_remote/comment_9_b420b1f320d620a9909cce5086c549bf._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + ip="209.250.56.55" + subject="comment 9" + date="2014-09-30T18:09:04Z" + content=""" +For urls using http basic auth, you can use the standard url form, http://username:password@example.org/url/ , which should work with `git annex addurl`. The url, including the password, will be stored in the git-annex branch though. If you want to protect the password from being exposed to anyone who gets a clone of the repository, just download manually, and then `git annex add` the file. +"""]]