How to identify and backup multiple Volume Servers data into separate folders, using weed backup

69 views
Skip to first unread message

nithin ks

unread,
Nov 20, 2023, 11:12:47 AM11/20/23
to Seaweed File System
Hi Folks, 
I have a seaweedfs environment with 1 Master, 2 Volume servers, 2 Filers, 2 S3 servers.

I am trying to take a back up of volume data using the weed backup command.

I have mapped the 2 Volume servers data to voldata_1/dir  and voldata_2/dir directories respectively.

Volume server 1's data
Screenshot 2023-11-20 at 9.27.45 PM.png

Volume Server 2's data
Screenshot 2023-11-20 at 9.25.08 PM.png


From the data on these folders, It's clear that the data on 
Volume Server 1's data folder has data of volumeIds 2,3,5,6 and 7.
Volume Server 2's data folder has data of volumeIds 1 and 4.


Question:
Now, When I need to run weed backup command,
How can I get the information of the volume server, to which the volumeId belongs to,
so that I can organise the backup data of the each volume servers to a separate folder.


weed backup -server=localhost:9333 -dir=./data_volume_weed_backup -volumeId=2 


Is there a ReST endpoint on Master, which returns the Volume Server and volumeId mapping(probably for a given volumeId)

Issue:
Restoring is difficult if we are unable to distinguish the data of Volume servers.
We may end up having duplicate data on all the Volume servers data folders.


Thanks in Advance,
Nithin
Reply all
Reply to author
Forward
0 new messages