Does not matter how you connect (GUI or CLI) - it creates the same config files. Myself if I have more than one repo I connect from CLI as it allows me to specify kopia.config file name. So I can have always the same name in scripts. But this is purely for cosmetic reasons only.
I stopped using kopia/rclone as it was not reliable enough for me so I can only refer to my past notes and patchy memory:)
Possible that rclone flags only apply to kopia connect. As rclone binary location and flags are stored in kopia.conf file.
PS. At least for testing give your shell (bash, sh or whatever you are using) full disk access in macOS System Settings â Privacy & Security. This is another challenge when working with macOS. You either give your stuff all access or you have to package and sign it later.
The problem and its solution are incredibly dumb but Iâm posting here in case someone has this problem:
The GUI allows you to specify the path as usr/local/bin/rclone without the initial / and it will work and save a config file without the initial /, BUT
the CLI requires the initial / or you will get an error.
If you want to use your GUI config file with the CLI, you need to write the path as
/usr/local/bin/rclone
when creating your repository
The GUI should be modified so that it doesnât let users input a path without an initial / when creating a repository. Or it should append one when creating the config file. Otherwise the config files it produces will not work with the CLI.
Ok hereâs how I achieved snapshot on mount for my cryptomator volume on Mac OS:
Using Lingon (or manually) create a launchd plist, I named mine onMount
Make it point to a script, I set mine for the default zsh shell and named it .createSnapshot (the prefixed . just makes it hidden in finder, change as preferred)
Save this script ON the volume you want to be backed up when mounted
Under advanced in Lingon, set your launchd agent to run on volume mount. This will run when any volume is mounted, which is why we saved the script to the external volume we want to back up. When any other volume is mounted (e.g. a thumb drive), the launch agent simply wonât find the script and your commands wonât run.
In the script, you want something like:
kopia snapshot create â/path/to/sourceâ --config-file=â/path/to/configâ
To add notifications, get terminal-notifier
brew install terminal-notifier
Edit your script to something like this:
kopia snapshot create â/path/to/sourceâ --config-file=â/path/to/configâ && terminal-notifier -title âKopia CLIâ -message âSnapshot createdâ