Closed hellodecentralized closed 1 year ago
curl -u "":<API_PASSWORD> -X GET "http://localhost:9980/api/bus/objects/"
to export the list of files.
curl -u "":<API_PASSWORD> -X PUT "http://localhost:9980/api/bus/objects/<PATH>"
to import a single file.
curl -u "":<API_PASSWORD> -X GET "http://localhost:9980/api/bus/objects/"
to export the list of files.curl -u "":<API_PASSWORD> -X PUT "http://localhost:9980/api/bus/objects/<PATH>"
to import a single file.
Thank you mike for replying so fast)
It's returning an "entries" list of the file paths on local, but is there a way to also get the keys of those encrypted files and other params so that I would be able to migrate them and be able to download them on another wallet seed?
You can use curl -u "":<API_PASSWORD> -X GET "http://localhost:9980/api/bus/objects/<PATH>"
to get the metadata of the individual file.
Awesome, it worked! Thanks. By the way, I don't know if I should close this request or not because I see the backup functionality in Renterd UI as something very useful, like in the old Sia UI.
This is something that will be provided by Sia Satellite (actually, I'm just about to commit this new functionality to GitHub), but I'm not sure if it will ever be available in the core software, so better leave it open.
Considering that we moved the architecture to now use a database, we consider taking and restoring from a backup something that needs to be managed by the user by stopping renterd
taking a sql dump and then restoring from that dump. I believe we will soon provide guides for this to document the process. I will close this issue since it won't be a renterd
feature. Thanks for bringing it to our attention though!
Describe the request
Is there a way, like in the now deprecated Sia UI, to backup and restore instances of files on the wallet seed? Because when I imported the seed on another PC, the files didn't show up. If not, I think it would be very useful to create a backup, be it stored off-chain so that there is a way of exporting the list of files to another PC. Currently, as of my understanding, files are stored in db.sqlite, so I know this can be done manually in one way or another.