Configuration with Minecraft - How to store backups on second drive

System Information

Field Value
Operating System Linux - Ubuntu 22.04.2 on x86_64
Product AMP ‘Decadeus’ v2.4.5.4 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Sleeping

Problem Description

Issue

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

Reproduction Steps

  • 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.

Limits.MaxIndividualSizeMB=10140
Limits.MaxBackupCount=28
Limits.ReplacePolicy=DoNothing
Limits.MaxDirectoryTraversalDepth=8
Limits.Compression=Default
Storage.StorePath=./hdd2/Backups/
Storage.OverrideOriginDirectory=False
Storage.OriginDirectory=
Storage.UseVDS=True
Cloud.UseS3Storage=False
Cloud.S3ServiceURL=
Cloud.S3AuthenticationRegion=
Cloud.S3BucketName=AMPBackups
Cloud.S3AccessKey=
Cloud.S3SecretKey=
Cloud.S3UploadMode=UploadAllBackups```

Your StorePath value is incorrect. The “.” at the start denotes a relative path to the current working directory. It should instead be:
Storage.StorePath=/hdd2/Backups/
So long as the instance isn’t running in docker, in which case theres a small handful of extra steps.

1 Like

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 path is invalid.

Try D:\AMPBackups\

That works, thank you very much!