-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error: missing mandatory check field: 2.storage #42
Comments
That took me a perusal of the source code, and then I understood what is happening: For the
The In any case, the above segment says you have three storages to check (numbered from 0 due to how Go numbers these).
You can't check something without a storage name, so Make the check segment look like this instead:
That should fix you up. |
Thanks for spotting that. I would have looked at it for days before I caught it. |
The error message is historical. We used to have numbered sections in prior versions. When you had numbered sections, 2.storage made more sense (check session 2, field storage). I'm going to to reopen this issue (as a reminder) and run through the code making sure error messages make sense given the current YAML format. This would have been better to say something like |
Attempting to run duplicacy-util on Windows Server 2012. I consistently get the following:
PS C:\users\daniel> duplicacy-util -f serverfolders 19:21:47 Using global config: C:\Users\daniel\.duplicacy-util\duplicacy-util.yaml Error: missing mandatory check field: 2.storage
I have also run the command explicitly providing the -sd flag, with the same result. The -v and -d flags provide no further information.
The local config file is in the same directory as the global one, and is named serverfolders.yaml. It contains:
I have tried many variations: repository name (serverfolders), repository location (D:\ServerFolders), storage name (usbdrive), storage location (h:\duplicacy_backup), etc.
The repository has been initialized to use a directory on an external hard drive as storage, and to copy to cloud storage. I have successfully run the backup and copy operations directly with duplicacy several times, but I can't get duplicacy-util started.
Have I misunderstood something about the configuration options?
The text was updated successfully, but these errors were encountered: