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