Previously asked at Downloading mounted volume (or downloading files from the volume) with a somewhat unsatisfactory set of workarounds.
I’d love to be able to take a volume (perhaps a fork of my running volume) and download it in one command, as a way of duplicating the state I’m keeping on fly.io into a local system. I can see a few ways to do this:
- Direct support in
flyctl volumefor a download function. - Fork the volume, then attach it to a purpose-built container that has
tailscalerunning in it and some simple script to pull the data out. - Add a download function to the application I’m running (
golink) so there’a a special endpoint that pulls down the data I want.
Any other suggestions for doing this? I have to believe that “make a local backup of a remotely mounted volume” is a common desire.