Guest User

Untitled

a guest
Apr 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/bin/bash
  2. # This script backs up a USB key to a disk image.
  3.  
  4. #
  5. # == Explanation ==
  6. # The first part sets a number of variables used by the "heavy-lifting"
  7. # script. More details noted in said script. Basically this lets you
  8. # create many similar scripts (say, for each of your USB keys) without
  9. # having to copy and modify all of the work-horse code. Also, when you
  10. # figure out a better way to make the magic happen, you only have to
  11. # modify said code in one place, and all of your scripts can use it.
  12. #
  13. # The second part is what sucks in and runs the work-horse code.
  14. #
  15.  
  16.  
  17. # Set volume-specific variables
  18. sourceName=CHIPMUNK;
  19. backupName=CHIP_BACKUP;
  20. diskImage=~/DataFiles/BACKUP/Key_CHIPMUNK_backup.sparseimage;
  21.  
  22.  
  23. # Include core backup script
  24. if [ -e ~/Scripts/backup_CORE.sh ];
  25. then source ~/Scripts/backup_CORE.sh;
  26. else echo "Core backup script could not be found.";
  27. fi
Add Comment
Please, Sign In to add comment