||Linux - Ubuntu 22.04.2 on x86_64
||AMP ‘Decadeus’ v184.108.40.206 (Mainline)
|Running in Container
I have two drives in my server, the secondary drive mounted to permanent mount point /hdd2. I am unsure as to how to set it so that backups are stored on the second hard drive mounted at /hdd2
- Created secondary datastore which I believe points correctly to the mount point /hdd2
- Edited LocalBackups plugin file in instance
- Backups directory is still created within the instance
Yeah I edited
LocalFileBackupPlugin.kvp to the new path (/hdd2/Backups for example) and it would still create the backups in the instance directory.
Can you show the permissions of the backup directory? And you also changed it in the LocalFileBackupPlugin.kvp of the minecraft instance? Did you already try to add the backup dir to the defaults and created a new instance?
drwxr-xr-x 2 amp amp 4096 Jul 4 22:59 Backups
Yeah, I changed LocalFileBcakupPlugin.kvp in the Minecraft instance.
Include a forward slash at the end of the path, and restart the entire instance after changing the file
Done that, it just creates a folder named /hdd2/Backups/ in the instance’s VDS rather than writing the backup to the second drive (which again, is mounted to the permanent mount point of /hdd2)
Are you making sure to stop the instance before editing it’s config files?
Yes, the instance is stopped, I make the changes, then restart.
Show me the relevant section of the config file please.
Your StorePath value is incorrect. The “.” at the start denotes a relative path to the current working directory. It should instead be:
So long as the instance isn’t running in docker, in which case theres a small handful of extra steps.
I’m using Windows, and putting
Storage.StorePath=/D:/AMPBackups/ causes my Minecraft instance to crash with this message:
ADS logged stopped instance Minecraft01 - exit code -1 (CATASTROPHIC_FAILURE).
Could someone point me in the right direction?
That works, thank you very much!