I have the following message in the installer logs when I try to install a client which I just downloaded from the server:
2018-11-18 03:03:29+01 lepiote installd[1221]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 “An error occurred while running scripts from the package “final.pkg”.” UserInfo={NSFilePath=./postinstall, NSURL=file://localhost/var/folders/x5/s9ksckd50nnggmt1l9n_vj_m0000gn/T/selfgz160717461/final.pkg#output2.pkg, PKInstallPackageIdentifier=org.urbackup.client, NSLocalizedDescription=An error occurred while running scripts from the package “final.pkg”.} {
NSFilePath = “./postinstall”;
NSLocalizedDescription = “An error occurred while running scripts from the package \U201cfinal.pkg\U201d.”;
NSURL = “file://localhost/var/folders/x5/s9ksckd50nnggmt1l9n_vj_m0000gn/T/selfgz160717461/final.pkg#output2.pkg”;
PKInstallPackageIdentifier = “org.urbackup.client”;
}
This didn’t happen on Mac OS 10.13.
As far as I understood, 10.14 restricts access to disk even for root (for example, the find command executed with root privileges fails to scan many directories).
For now I’m stuck with the installation of UrBackup client.
If you need some more info I’d be glad to provide it.
Thanks.
First attempt with the UrBackup Client 2.3.4, then I applied the latest updates from Apple today, and re-ran the install with the same result. macOS Mojave 10.14.5
I’m not a programmer (just a system admin) but does it not look like there are some file missing that the install process is calling, “./postinstall” ?
2019-05-21 10:51:56+02 computer-name installd[395]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts
NSFilePath = “./postinstall”;
NSLocalizedDescription = “An error occurred while running scripts from the package \U201cfinal.pkg\U201d.”;
NSURL = “file:///var/folders/zt/32s5w0qx1435wn137pby5q0h0000gn/T/selfgz138425550/final.pkg#output2.pkg”;
PKInstallPackageIdentifier = “org.urbackup.client”;
With some hacking, it’s still possible to install the client (just decompress the files contained in the installer package and copy them manually, it’s quite easy).
So even if perfectible, I’d rather have the Mac client present and marked “community supported”. And I’ll be glad to post the workaround somewhere.
I’ve been using borgbackup and it’s associated borgmatic script to backup various platforms at work (Mac, Windows and Linux). It’s overall a more “hackable” solution with pros and cons compared to urbackup, but I also like it.
Another issue I’ve had (and fixed) with urbackup for Mac is that the installer sets up it’s var folder inside the application folder.
Given how apple handles authorizations, changing data inside the app folder voids the app’s authorizations to access the disk on every backup. The effects show when the daemon is relaunched (this happens at computer restart or sometimes after sleep).
The simple workaround is to move the var folder to /etc and symlink to it from its original location.
I believe it’s a hard path to take for UrBackup because it’s too platform specific, and it would require a substantial effort to maintain. I’d be better off skipping the “protected” folders of Mac OS (like /bin /sbin and a few others) because they are supposed to be handled by the OS install and update mechanisms (that’s why even Mac OS updates have to boot in a special mode to process those regions, then the Mac boots normally again).
The most important dirs to backup, I think, are /etc /Library and of course /Users. That won’t allow immediate restore of whole systems, but at least we don’t lose user data and configurations.
For Mac applications, the right place to store data is probably in /Library/Application Support/APPNAME/
If it’s user specific data for a given application that would be $HOME/Library/Application Support/APPNAME/
It’s not about system backups. In general, if you backup files without snapshots you have a chance that they are currently undergoing changes and are inconsistent (which makes those backups worthless). Think of the database file of you mail application for example.
If there is a command line tool to create APFS snapshots it’s as simple as creating a snapshot script such as this: urbackup_backend/linux_snapshot/btrfs_create_filesystem_snapshot at 2.4.x · uroni/urbackup_backend · GitHub