behavior, mincopies also needs to be set to 0.
* Behavior change: git-annex trust now needs --force, since unconsidered
use of trusted repositories can lead to data loss.
- * Behavior change: --trust option no longer overrides trust, since
- that can lead to data loss, which should never be enabled by an option
- other than --force.
+ * Behavior change: --trust and --trust-glacier options no longer overrides
+ trust, since that can lead to data loss, which should never be enabled
+ by an option other than --force.
* add: Significantly speed up adding lots of non-large files to git,
by disabling the annex smudge filter when running git add.
* add --force-small: Run git add rather than updating the index itself,
<> help "override default User-Agent"
<> hidden
)
- , globalFlag (Annex.setFlag "trustglacier")
+ , globalFlag (toplevelWarning False "--trust-glacier no longer has any effect")
( long "trust-glacier"
- <> help "Trust Amazon Glacier inventory"
+ <> help "deprecated, does not trust Amazon Glacier inventory"
<> hidden
)
, globalFlag (setdesktopnotify mkNotifyFinish)
{- Amazon Glacier remotes.
-
- - Copyright 2012-2020 Joey Hess <id@joeyh.name>
+ - Copyright 2012-2021 Joey Hess <id@joeyh.name>
-
- Licensed under the GNU AGPL version 3 or higher.
-}
import qualified Remote.Helper.AWS as AWS
import Creds
import Utility.Metered
-import qualified Annex
import Annex.UUID
import Utility.Env
import Types.ProposedAccepted
s <- liftIO $ readProcessEnv "glacier" (toCommand params) (Just e)
let probablypresent = serializeKey k `elem` lines s
if probablypresent
- then ifM (Annex.getFlag "trustglacier")
- ( return True, giveup untrusted )
+ then giveup untrusted
else return False
params = glacierParams (config r)
untrusted = unlines
[ "Glacier's inventory says it has a copy."
, "However, the inventory could be out of date, if it was recently removed."
- , "(Use --trust-glacier if you're sure it's still in Glacier.)"
- , ""
]
glacierAction :: Remote -> [CommandParam] -> Annex Bool
* `--trust-glacier`
- Amazon Glacier inventories take hours to retrieve, and may not represent
- the current state of a repository. So git-annex does not trust that
- files that the inventory claims are in Glacier are really there.
- This switch can be used to allow it to trust the inventory.
-
- Be careful using this, especially if you or someone else might have recently
- removed a file from Glacier. If you try to drop the only other copy of the
- file, and this switch is enabled, you could lose data!
+ This used to override trust settings for Glacier special remotes,
+ but now will not do so, because it could lead to data loss,
+ and data loss is now only enabled when using the `--force` option.
* `--backend=name`
drop important_file (gpg) (checking glacier...)
Glacier's inventory says it has a copy.
However, the inventory could be out of date, if it was recently removed.
- (Use --trust-glacier if you're sure it's still in Glacier.)
(unsafe)
Could only verify the existence of 0 out of 1 necessary copies
-Like it says, you can use `--trust-glacier` if you're sure
-Glacier's inventory is correct and up-to-date.
+To avoid this problem, you can either use `git annex move` to move
+content to Glacier, or you can set the remote to be [[trusted]].
A final potential gotcha with Glacier is that glacier-cli keeps a local
mapping of file names to Glacier archives. If this cache is lost, or