A backup script that intelligently detects computers connecting to and leaving a network