# 0.91 added functionality to deal with alternate user paritions that are mounted with fstab, and flags for /Users/.nobackup (automated wipe) # 0.3 merged functionality from old script - can now run interactively # 0.2 added initial gui and user exclusion # more info 0.1 casperimaging spin off - BackupRestoreUsers.sh was getting to big for it's boots # get info set the -backup.sh to run BEFORE, and -restore.sh to run AFTER # you should now have 2 scripts, a backup and restore mode script. # save as 'BackupRestoreUsers-restore.sh' # use the network segment section so you can find the nearest backupserver automatically. # configure your backuprepo as below (either backuproot=/Volume/LocalHD, afpurl, smburl) # as casper imaging is a little difficult with it's scripting workflows it goes like this. # copy the script folder to a share, then launch script via the xxx.command wrappers. # configure your backuprepo as below (default: backuproot="$(dirname $0)/_UserBackups") I do plan on opensourcing this, along with my patch management system very soon so it can be refined. DISCLAIMER - use at your own risk! No warranty! Code is ugly disclaimer! Netboot your CEO's Macbook Air *, run an erase imaging workflow, follow the prompts and backup and restore their user data without out leaving CasperImaging! The workflow has timeout which defaults to backup all users (apart from the excluded ones hardcoded in the script). Upload the scripts via Casper Admin, and set them to.īackupRestoreUsers-backup.sh - run beforeīackupRestoreUsers-restore.sh - run afterĪdd them to a imaging configuration that erases and reimages. (we just use inexpensive USB drives connected to the MacMinis at each location as we don't do bulk imaging often). Make a sharepoint on your CDPs for backing up user homes (maybe called UserBackup). (It will search mount points when netbooted for your CasperShare, then use that server to backup user homes to). Then hard code the mode in the script (caspermode=true, mode="restore"/"backup")Ĭonfigure cdpmode=true, and set your options and credentials. You can make two copies of the script, one for backup and one for restore. command wrapper scripts without modification to backup all homes on a Mac. It can be copied to a sharepoint or external hard drive and run interactively via the. ![]() Welcome BackupRestoreUsers.sh (worst title ever). You want to re-image but have to manually backup the user's home. You have problem.You environment uses local accounts, or just cached mobile directory accounts directed to the local HD. Here's a little doozy we've been using for a while.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |