Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Removing a volume: steps to move files back to droplet, remove symbolic link and delete volume
Short story is my admin is no longer with us and I’m not that familiar with this setup, so appreciate any help.
We have an Ubuntu droplet for our MySql database: db-droplet
We have a volume attached to that droplet and our db tables and data live there: /mnt/db-volume-01
I see in our droplet it has a symbolic link to what I assume is the original location where the db was storing the db table data.
/mysql/db_tables -> /var/lib/mysql/db_tables
We no longer need the volume so we’d like to copy back our data from the volume to the droplet, remove the symbolic link and then detach & delete the volume.
Can anyone please provide the necessary steps and commands to do the above? Much appreciated!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×