Backup JAMF System scripts using SwiftDialog GUI

ScottEKendall
Contributor

Back at it again with a (potentially) useful script.  

This script is designed to extract all of the system scripts from your JAMF server. Why do you want to do this?

  1. Make a backup of your scripts in case your existing backup files is missing/corrupted (or you don't have one!)
  2. You inhereited a JAMF server from another person, and this can do a "brain dump" so you can review the scripts.
  3. Why not? It is another example of what you can do with API scripts..

Source: https://github.com/ScottEKendall/JAMF-Pro-Scripts/tree/main/BackupJAMFScripts

 

Welcome screen

BackupJAMFScripts-welcome.png

Process screen

BackupJAMFScripts-progress.png

Errors screen if problems found:

 

BackupJAMFScripts-error.png

11 REPLIES 11

scottb
Honored Contributor

Thanks, @ScottEKendall - this is a great idea, and I will actually use it now!

scottb
Honored Contributor

Worked great!  This is excellent... @ScottEKendall 

ScottEKendall
Contributor

Great!  now if I could just find the API key for the configuration scripts...I can do the same with that...

 

LK
New Contributor III

Thanks @ScottEKendall, looks like this could be very helpful to some!

sdagley
Esteemed Contributor III

Since I not a Jamf Connect customer it's not clear to me if this post is in the right product section, or was intended for the Jamf Pro section, so if it is posted correctly and refers to Jamf Connect specific scripts please ignore the rest of my post...

@ScottEKendall Not to denigrate the interesting and useful tools you've posted, as well an informative body of Jamf Pro API and swiftDialog usage examples, but I'd recommend people looking for a GUI based JSS backup take a look at Jamf's own Replicator (formerly Jamf Migrator). It pretty much handles everything but Self Service icons (which one of your other recent posts covers) in a single tool that can both back up and restore/replicate a JSS configuration.

Although that is good for migration between servers, these utilities are for a standalone instance to extract info to a local backup drive…


Scott Kendall

macOS Support Engineering | Giant Eagle, Inc.

scott.kendall@gianteagle.com



[Image]

sdagley
Esteemed Contributor III

Replicator will copy all configuration data from a JSS to a local drive.

scottb
Honored Contributor

I've had lots of issues with Replicator and esp since enabling OIDC, in some cases, I can't even login...

These allow me to just setup and run as needed, which is turning out to be better for me for now.

 

sdagley
Esteemed Contributor III

@scottb  Please log any issues you've found with Replicator in the repo's Issues tracker.

mattjerome
Contributor

 My go to is Rich Trouton's (as with most things)!

totally agree...some of my scripts are from the inspiration that I got from his site...