R
Railway15mo ago
Danny

Mounting a volume

Hi! is there a way to upload files to a volume or mount it on my local mahcine?
35 Replies
Percy
Percy15mo ago
Project ID: N/A
MantisInABox
MantisInABox15mo ago
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
Danny
DannyOP15mo ago
it cant access the files for some reason
No description
Danny
DannyOP15mo ago
is it a permission issue?
MantisInABox
MantisInABox15mo ago
@Brody you made this template
Danny
DannyOP15mo ago
ah
No description
Danny
DannyOP15mo ago
its trying to use /data/storage
MantisInABox
MantisInABox15mo ago
Then that is where you need to mount your volume
Danny
DannyOP15mo ago
welp ill mount it there then yeh
Brody
Brody15mo ago
just mount it to /data
Danny
DannyOP15mo ago
oh now its using data/storage/storage did that but it didnt work
Brody
Brody15mo ago
well it was only a matter of time before someone broke it
MantisInABox
MantisInABox15mo ago
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
Danny
DannyOP15mo ago
ah thats probably the problem
MantisInABox
MantisInABox15mo ago
From the overview of the template
Danny
DannyOP15mo ago
i see stuff now but its not my volume
No description
Brody
Brody15mo ago
the template comes with a volume
Danny
DannyOP15mo ago
i should use that?
Brody
Brody15mo ago
its up to you you can always unmount it and mount your volume
Danny
DannyOP15mo ago
but will it like save the stuff i make in here? to the root of the volume
Brody
Brody15mo ago
thats what USE_VOLUME_ROOT is for so when you went to deploy the template, did you change the volume mount point or something?
Danny
DannyOP15mo ago
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
Brody
Brody15mo ago
did it not come with a volume when you deployed it like that?
Danny
DannyOP15mo ago
nop
Brody
Brody15mo ago
that's not good
Danny
DannyOP15mo ago
hmm it didnt work
Brody
Brody15mo ago
and when you mounted a volume to it, what was the first mount point that you did?
Danny
DannyOP15mo ago
/data
Brody
Brody15mo ago
okay and what isn't working now
Danny
DannyOP15mo ago
oh i see the problem :P pocketbase is running in /pb and i mounted it to another thing hey it worked
Danny
DannyOP15mo ago
it found my backup!
No description
Danny
DannyOP15mo ago
it restored successfully, thanks for your help!
Brody
Brody15mo ago
can't you upload and download backups from pocketbase itself?
Danny
DannyOP15mo ago
you can download but not upload kinda stupid
Brody
Brody15mo ago
I see agree
Want results from more Discord servers?
Add your server