Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move and Change all Media directory #3644

Open
ToddCrimson opened this issue Oct 20, 2024 · 1 comment
Open

Move and Change all Media directory #3644

ToddCrimson opened this issue Oct 20, 2024 · 1 comment
Labels
question This issue is a question related to installation

Comments

@ToddCrimson
Copy link

Small, private, family only server, but slowly growing over 2 years.

Matrix Server:

  • OS: Debian 12
  • Architecture: arm64

Ansible:
If your problem appears to be with Ansible, tell us:

  • where you run Ansible -- My desktop
  • what version of Ansible you're running: -- 2.14.6

Problem description:

Running out of hard disk space on my VSP. So I keep cleaning old Media files. But now I have purchased and attached 40 gigs of block storage for super cheap to my Debian. It's available and running.

I'd like a method to move all my media to that block storage, and make that the default location for storage. I have full root access ofcourse. Could someone please help me?

Also, after I make the change, I'd like to make sure future upgrades, respect that.

Client (please complete the following information):

  • Device: iPhone12
  • OS: Latest iOS
  • Browser: Safari
  • Version: Latest

Additional context
Thank you in advance

@joolsr
Copy link

joolsr commented Oct 23, 2024

Hi
I don't think this is really the right place for this as its something you can do yourself in Linux rather than being added to the script.
What i would do is to add a new /media/new mount point to point to your new storage,, then something like add a symlink to existing main media dir. Or you coudl move all your data to new media dir and symlink this from the old one.

Otherwise if you have LVM you could do something with LVM volumes instead.

There's probably a few other ways you can do this to, depending on file system. For example if you're using btrfs you could add a disk in a similar fashion as you might expand with LVM.

Hope this gives a few ideas for you to Google on ..

@luixxiul luixxiul added the question This issue is a question related to installation label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question related to installation
Projects
None yet
Development

No branches or pull requests

3 participants