mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
Major restructure, bundle blobs
This commit also breaks the repository format.
This commit is contained in:
1 parent
b836da1980
commit
60a0fe8349
29 files changed
+937
-1123
No files matched your search
+15
-4
@@ -20,7 +20,7 @@ func init() {
|
||||
}
|
||||
|
||||
func (cmd CmdList) Usage() string {
|
||||
return "[data|trees|snapshots|keys|locks]"
|
||||
return "[blobs|packs|index|snapshots|keys|locks]"
|
||||
}
|
||||
|
||||
func (cmd CmdList) Execute(args []string) error {
|
||||
@@ -35,10 +35,21 @@ func (cmd CmdList) Execute(args []string) error {
|
||||
|
||||
var t backend.Type
|
||||
switch args[0] {
|
||||
case "data":
|
||||
case "blobs":
|
||||
err = s.LoadIndex()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for blob := range s.Index().Each(nil) {
|
||||
fmt.Println(blob.ID)
|
||||
}
|
||||
|
||||
return nil
|
||||
case "packs":
|
||||
t = backend.Data
|
||||
case "trees":
|
||||
t = backend.Tree
|
||||
case "index":
|
||||
t = backend.Index
|
||||
case "snapshots":
|
||||
t = backend.Snapshot
|
||||
case "keys":
|
||||
|
||||
Reference in new issue
Block a user