[Question] How do I add storage locations to Lemmy?

Soon, I'll need to increase the storage capacity of my Lemmy server. I use a Digital Ocean VPS running Debian 11. I don't really need to increase the RAM, CPU, or other core system resources so I planning on adding some block storage to my VPS. My question is: How can I tell Lemmy/Pict-rs to store/retrieve new data here without losing my existing data?

Assume the volume will be positioned on /mnt/vol-1.

Thanks in advance!

3 points · 6 comments · view on lemmy.world

6 Comments

poVoq@slrpnk.net · 4 pts · 3y (1 reply)
Atalocke@lemmy.basedcount.com · 1 pts · 3y

Thanks!

rikudou@lemmings.world · 3 pts · 3y (2 replies)

You could just move the data to the new location and then make it a symbolic link to the new disk.

RagingToad@feddit.nl · 2 pts · 3y (1 reply)

Could even be a hard link.. (some applications don't like symbolic links).

Edit: or a mount point.

Make sure to stop the application, mount the drive and link it, start the application again You have a backup? :-)

rikudou@lemmings.world · 1 pts · 3y

You can't do hard link to a directory, can you? Most of the time symbolic link works well, but yeah, sometimes you're gonna have to do a bind mount.

Vendetta9076@sh.itjust.works · 1 pts · 3y

You could something like mergefs to just merge both drives together. Then you wouldn't need to add a new pathway.