Spectrum Protect on macOS 10.14 (Mojave) is unable to back up files in some of your directories including Contacts, Desktop, Documents, Downloads, Photo Library, Mail, Messages and others unless you give it permission. Even then it does not work in all circumstances.
Information is available from IBM on this problem in their description at IT31110: ANS4007E AND I/O ERRORS SEEN WHEN BACKING UP MACOS MOJAVE 10.14.
Please note that this section applies only to users of Spectrum Protect who are running macOS Mojave (10.14). For instructions for macOS Catalina (10.15) or higher with Spectrum Protect, please see the next Knowledgebase item.
When trying to back up the above directories, you receive the following error message: "ANS5057E Access to the specified file or directory is denied" or "ANS4007E Error processing <path>: Access to the object is denied".
||Apple's privacy and security settings for files and folders containing personal data introduced in macOS 10.14 (Mojave) prevent applications, including backup applications, from accessing data in some locations such as the desktop, documents etc. unless you explicitly give them permission. This causes difficulties using Spectrum Protect that have been resolved in later versions of macOS.
||The recommended resolution is to upgrade to a more recent version of macOS. You will still need to give Spectrum Protect permission to access your files (see the instructions in the next Knowledgebase item) but it will work properly. If you are unable to upgrade please see the following partial workarounds.
On macOS 10.14 (Mojave), with the following changes in effect, certain folders can be backed up with manual backups only using Applications > Spectrum Protect > Spectrum Protect for Administrators, such as Documents, Downloads, Desktop, Movies and Music etc.; however, others such as Pictures, Calendar, Mail and others still cannot be backed up. Please see resolution 3 below for instructions on how to back up the latter, if you need to do so.
1. Go to System Preferences > Security & Privacy > Full Disk Access (unlocking the padlock if needed).
2. Add the following items to the list:
- Applications > IBM Spectrum Protect > IBM Spectrum Protect for Administrators
- Applications > IBM Spectrum Protect > IBM Spectrum Protect
- Applications > Utilities > Terminal
If 'dsmagent' and/or 'dsmcad' are not on the list, then click on the '+' sign and navigate to '/Library/Application Support/tivoli/tsm/client/ba/bin' where you can find them.
All of the above items must be both present and ticked.
It is possible to back up all files on a manual backup, if (1) the actions specified above in resolution 2 have been completed and (2) Spectrum Protect is run in a different way:
1. Go to Applications > Utilities.
2. Run Terminal.
3. Type in 'sudo dsmj' and press Enter.
4. You will be prompted for your the administrator password for your Mac. When you type it in, no characters will appear on screen. Type the password and press Enter.
5. Spectrum Protect will run. You should now be able to select any files for backup.
If you wish to use scheduled backups, then a further workaround is required, which involves stopping the usual backup scheduler and starting it in a different way. Steps 4-8 need to be repeated each time that you start up your Mac.
- Go to Applications > IBM Spectrum Protect > IBM Spectrum Protect for Administrators.
- Select Stop the Client Acceptor Daemon.
- Enter your Mac administrator password when prompted, and click OK.
- Go to Applications > Utilities.
- Run Terminal.
- Type in 'sudo dsmcad' and press Enter.
- You will be prompted for your the administrator password for your Mac. When you type it in, no characters will appear on screen. Type the password and press Enter.
- You may now close the Terminal window by clicking on the red circle at its top left corner.
||Spectrum Protect, macOS