Public bug reported:

The following will lead to dataloss when the remote rsync server does
not have git-annex-shell installed:

git annex initremote datalossremote type=gcrypt 
gitrepo=rsync://user@host:path/repo.git keyid=something_here
git annex sync
echo test > test.txt
git annex add test.txt
git annex move test.txt --to=datalossremote
git annex get test.txt

The get command will fail and the file is no longer present locally ->
dataloss.

** Affects: git-annex (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: focal

** Description changed:

  The following will lead to dataloss when the remote rsync server does
  not have git-annex-shell installed:
  
- git annex initremote datalossremote type=gcrypt gitrepo=rsync 
gitrepo=rsync://user@host:path/repo.git keyid=somethinghere
+ git annex initremote datalossremote type=gcrypt 
gitrepo=rsync://user@host:path/repo.git keyid=somethinghere
  git annex sync
  echo test > test.txt
  git annex add test.txt
  git annex move test.txt --to=remote
  git annex get test.txt
  
  The get command will fail and the file is no longer present locally ->
  dataloss.

** Description changed:

  The following will lead to dataloss when the remote rsync server does
  not have git-annex-shell installed:
  
- git annex initremote datalossremote type=gcrypt 
gitrepo=rsync://user@host:path/repo.git keyid=somethinghere
+ git annex initremote datalossremote type=gcrypt 
gitrepo=rsync://user@host:path/repo.git keyid=something_here
  git annex sync
  echo test > test.txt
  git annex add test.txt
  git annex move test.txt --to=remote
  git annex get test.txt
  
  The get command will fail and the file is no longer present locally ->
  dataloss.

** Description changed:

  The following will lead to dataloss when the remote rsync server does
  not have git-annex-shell installed:
  
  git annex initremote datalossremote type=gcrypt 
gitrepo=rsync://user@host:path/repo.git keyid=something_here
  git annex sync
  echo test > test.txt
  git annex add test.txt
- git annex move test.txt --to=remote
+ git annex move test.txt --to=datalossremote
  git annex get test.txt
  
  The get command will fail and the file is no longer present locally ->
  dataloss.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1923482

Title:
  possible dataloss when pushing to a remote without git-annex-shell

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/git-annex/+bug/1923482/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to