Skip to content

Script to make backups of MacLoggerDX Logs folder

License

Notifications You must be signed in to change notification settings

lonney9/MLDX-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MacLoggerDX Backup Script

Script to make backups of the MacLoggerDX Documents/MLDX_Logs folder.

  • Gracefully closes MLDX
  • Creates a tgz archive (gzipped tar file)
  • Excludes .DS_Store, debug files, and QSL card images
  • Deletes the oldest backup if max_backups number has been reached
  • Starts MLDX

Create the backup folder where you want it, e.g. Documents/MLDX_Backup.

The number of backups to keep can be set, with the oldest deleted when a new backup is created.

Run the script from with-in the backup folder, or the path can be set if the script is being run from a different location, see the comments in the script.

iCloud Drive

This script may also be useful when iCloud Drive Documents & Desktop syncing is enabled.

The MacLoggerDX manual FAQ section recommends disabling iCloud Drive Documents & Desktop syncing..

If (like me) you use iCloud to sync the Documents and Desktop folders between several machines, MLDX places locks on some files which can cause problems with iCloud Drive syncing.

The work around I found was to move MLDX_Logs back one level to the /Users/username level, and create a symbolic link to it.

With MLDX closed, open terminal and run:

cd ~/Documents
mv MLDX_Logs ../MLDX_Logs
ln -s ../MLDX_Logs MLDX_Logs

The script can be run from a folder under Documents (e.g. MLDX_Backup) to create a backup that will get synced to iCloud Drive.

Restarting iCloud Sync Service

If iCloud drive gets stuck on syncing files (when it should not) I found the iCloud drive syncing service can be restarted simply with:

killall bird

The service will automatically restart, and with-in a few momnets the files should sync.

About

Script to make backups of MacLoggerDX Logs folder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages