Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add command backup destory volume error log (#5846)

qinguoyib74b506e5216
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 3573dbbfd9..f9b9fba642 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -138,7 +138,9 @@ func runBackup(cmd *Command, args []string) bool {
if datSize > stats.TailOffset {
// remove the old data
- v.Destroy(false)
+ if err := v.Destroy(false); err != nil {
+ fmt.Printf("Error destroying volume: %v\n", err)
+ }
// recreate an empty volume
v, err = storage.NewVolume(util.ResolvePath(*s.dir), util.ResolvePath(*s.dir), *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, 0, 0)
if err != nil {