Hi,
I’ve compiled Duplicati 2.0.3.3 beta for macOS High Sierra 10.13.4 myself but I’m facing some problems. When I setup a backup job with the advanced option snapshot-policy activated, the job returns an error:
Fatal error
System.Exception: The external command failed to start.
Error message: Duplicati.Library.Interface.UserInformationException: The script returned exit code 255, but 0 was expected: Exit code: 255
Error: unable to determine volume group (VG) for /Users/dev/Documents/BSBackupIcon.png
at Duplicati.Library.Snapshots.LinuxSnapshot+SnapShot.ExecuteCommand (System.String program, System.String commandline, System.Int32 expectedExitCode) [0x000d3] in <2be220318a714f97a1ac5d13c83b05be>:0
Command: /Applications/Duplicati.app/Contents/Resources/lvm-scripts/find-volume.sh "/Users/dev/Documents/BSBackupIcon.png"
at Duplicati.Library.Snapshots.LinuxSnapshot+SnapShot.ExecuteCommand (System.String program, System.String commandline, System.Int32 expectedExitCode) [0x000e4] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Snapshots.LinuxSnapshot+SnapShot.GetVolumeName (System.String folder) [0x00010] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Snapshots.LinuxSnapshot+SnapShot..ctor (System.String path) [0x00040] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Snapshots.LinuxSnapshot..ctor (System.String[] sources, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x000c2] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Snapshots.SnapshotUtility.CreateLinuxSnapshot (System.String[] folders, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x00000] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Snapshots.SnapshotUtility.CreateSnapshot (System.String[] folders, System.Collections.Generic.Dictionary`2[TKey,TValue] options) [0x0000f] in <2be220318a714f97a1ac5d13c83b05be>:0
at Duplicati.Library.Main.Operation.BackupHandler.GetSnapshot (System.String[] sources, Duplicati.Library.Main.Options options, Duplicati.Library.Main.ILogWriter log) [0x00024] in <ae134c5a9abb455eb7f06c134d211773>:0
at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String[] sources, Duplicati.Library.Utility.IFilter filter) [0x002b4] in <ae134c5a9abb455eb7f06c134d211773>:0
After examining the make-dmg.sh script I found out that lvm-scripts folder appears in the variable UNWANTED_FILES so the folder is removed on the compile process.
If I manually copy the lvm-scripts folder in /Applications/Duplicati.app/Content/Resources and I run Duplicati as service the same error appears.
I made sure that the service is running as root, and it is.
I can see on find-volume.sh that this error appears when lvs commands are executed. I tried to execute lvs commands on terminal for test purposes and the system is unable to found lvs command. Does that mean that is not possible to use snapshots on macOS? How can I use duplicati to copy, for example, an Outlook Data File (.pst) that is opened at the same time of the backup and obviously locked by Outlook?
I hope somebody can shed some light
Thanks!