rename "tahoe backup" to "tahoe snapshot" #1952
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1952
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tahoe backup
is a good tool! It does a really cool thing. However, it doesn't do "backup". Proof: there is notahoe restore
. If you were try to simulate "restore" by runningtahoe cp -r
, it would be unable to do all sorts of things that you expect from a backup-and-restore program, such as restoring symlinks, restoring mtime and ctime, restoring uid and gid, or delta-compressing between subsequent versions.Maybe we should rename
tahoe backup
totahoe snapshot
. Then people who want backup would stop complaining thattahoe backup
is a crummy backup tool, they would start using a good backup tool (such as duplicati+Tahoe-LAFS), and they would start using the newly createdtahoe snapshot
tool for its cool snapshot-making behavior.See comment:13:/tahoe-lafs/trac-2024-07-25/issues/6978, comment:14:/tahoe-lafs/trac-2024-07-25/issues/6978.
[//pipermail/tahoe-dev/2013-April/008200.html mailing list thread]
I'd much rather enhance
tahoe backup
to record more metadata (and to tolerate errors better), and add atahoe restore
(ortahoe cp --restore
) command to restore that metadata. I think thattahoe backup
is a good idea for backups because:Replying to daira:
Replying to daira:
But, even after someone does that, mightn't people still want a
tahoe snapshot
that doesn't record more metadata, for the other use case?See also #1325 (make
tahoe backup
keep more filesystem metadata).Replying to [zooko]comment:4:
See #658 ("tahoe cp" should avoid full upload/download when the destination already exists (using backupdb and/or plaintext hashes)).
... and #835 ("tahoe cp -r --mutable/--immutable": make mutable copy of immutable directories or vice versa).
I wouldn't be averse to having
tahoe snapshot
be an alias for, say,tahoe cp -r --immutable --use-backupdb
.I just went through a similar experience as described in Taylor's S4 Usability Notes for the tahoe-LAFS part in terms of managing the interfaces (both web and command line), and trying to not so much restore but even find the files that I backed up. I independently discovered this same discussion about backup vs. snapshot, and
tahoe cp -r
.I now don't understand why I would ever use
backup
instead ofcp -r
, if I want to be able to navigate the files later. It also took me a long time to figure out how to get the top level directory included in thecp
, by repeating the name of it after the alias.Replying to ambimorph:
tahoe backup
backs up the whole directory structure; the use of the backupdb to not upload some files/directories is just an optimisation, and the corresponding links to already-uploaded objects are still made on the Tahoe side. Note that this depends on the structure created bytahoe backup
being immutable.tahoe cp -r
is not able to use this optimisation because it always creates mutable directories (the--immutable
and--use-backupdb
options mentioned in comment:91519 are imagined future features).Replying to daira:
+1!