sudo slapconfig -backupdb /Users/localadmin/Documents/odbackup42117/
2017-04-21 17:00:43 +0000 slapconfig -backupdb
2017-04-21 17:00:43 +0000 Error: Archive file path exists. (error = 73)
2017-04-21 17:00:43 +0000 Removed file at path /var/run/slapconfig.lock.
If you’re getting this error and the man page for slapconfig is useless because there’s not enough detail, make sure you are also specifying the name of the disk image that the data will be saved to in your path.
sudo slapconfig -backupdb /Users/localadmin/Documents/odbackup42117/untitled.sparseimage