Mounting a volume
Hi! is there a way to upload files to a volume or mount it on my local mahcine?
35 Replies
Project ID:
N/A
Not mounting it, but you can use this template to mount the volume and manipulate the data.
https://railway.app/template/Nan7Bs
N/A
You will have to unmount your volume from your current service and mount it to the template
it cant access the files for some reason
is it a permission issue?
@Brody you made this template
ah
its trying to use /data/storage
Then that is where you need to mount your volume
welp ill mount it there then
yeh
just mount it to /data
oh now its using data/storage/storage
did that but it didnt work
well it was only a matter of time before someone broke it
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
ah
thats probably the problem
From the overview of the template
i see stuff now but its not my volume
the template comes with a volume
i should use that?
its up to you
you can always unmount it and mount your volume
but will it like save the stuff i make in here?
to the root of the volume
thats what
USE_VOLUME_ROOT
is for
so when you went to deploy the template, did you change the volume mount point or something?no i took the docker thing and made it in my project myself
cause it didnt seem like i could transfer it to another project
did it not come with a volume when you deployed it like that?
nop
that's not good
hmm it didnt work
and when you mounted a volume to it, what was the first mount point that you did?
/data
okay and what isn't working now
oh i see the problem :P
pocketbase is running in /pb
and i mounted it to another thing
hey it worked
it found my backup!
it restored successfully, thanks for your help!
can't you upload and download backups from pocketbase itself?
you can download but not upload
kinda stupid
I see
agree