# To pull files from lsa-mac-dev1 and put them on NEWSERVER: # All of these commands assume you are doing them from the machine # the files will be copied to ssh NEWSERVER.lsa.umich.edu ############################################################################### # Syncing the main load tree (no groups): ### Without syncing to staging dir first sudo rsync -e ssh -avz --delete --stats `whoami`@lsa-mac-dev1.lsait.lsa.umich.edu:/Volumes/DataDisk/Install/LSA /Volumes/DataDisk/Install ### syncing to staging dir first # Create the staging area (on each server): sudo rsync -av --delete --stats /Volumes/DataDisk/Install/LSA/ /LSA.stage # Sync from lsa-mac-dev1 to the staging area (on each server) sudo rsync -e ssh -avz --delete --stats `whoami`@lsa-mac-dev1.lsait.lsa.umich.edu:/Volumes/DataDisk/Install/LSA/ /LSA.stage # Sync the staging area contents into production sudo rsync -av --delete --stats /LSA.stage/ /Volumes/DataDisk/Install/LSA # Set all the perms sudo chown -R root:lsa-installers /Volumes/DataDisk/Install/LSA sudo chmod -R g=u-w,o=u-w /Volumes/DataDisk/Install/LSA sudo chmod 750 /Volumes/DataDisk/Install/LSA ############################################################################### # Sync over the Netboot image: sudo rsync -e ssh -avz --stats --exclude='SNItest*' `whoami`@lsa-mac-dev1.lsait.lsa.umich.edu:/Volumes/DataDisk/Library/NetBoot/NetBootSP0 /Volumes/DataDisk/Library/NetBoot sudo chown -R root:admin /Volumes/DataDisk/Library/NetBoot ############################################################################### # Sync over a department tree # Assuming you want to copy the files FROM lsa-mac-dev1 TO lsa-sni-eh: ssh lsa-sni-eh.lsa.umich.edu rsync -e ssh -av --stats `whoami`@lsa-mac-dev1.lsait.lsa.umich.edu:/Volumes/DataDisk/Install/Group/DEPT /Volumes/DataDisk/Install/Group # (might have to 'sudo' the above command if it doesn't work for you) # (optionally add the --delete flag to remove stale files) # (substitue DEPT with your department's short name) Or... you could use the handy script Dave wrote to do this for you... /usr/local/bin/dept-replicate dept