Advertisement
Guest User

Untitled

a guest
Jul 31st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.69 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. mkdir -p /mnt/partageLinux/
  4. mount -t cifs -o username=savlinux,password=B@ckup_Linux$ //MCABACKUP.mca-ingenierie.fr/SAV_Linux$ /mnt/partageLinux
  5.  
  6.  
  7. # Intranet
  8.  
  9. filiales="TICKET MCA_BEN MCA_ING MCA_IT_SERVICES MCA_SPA AXILEO MCA_GER MCA_GROUPE MCA_ITA MCA_NED MCA_SWE OLLEAN Communication"
  10.  
  11. for filiale in $filiales
  12. do
  13.     echo "Starting unbackup for $filiale"
  14.     cp "/mnt/partageLinux/EXTRANET/$filiale.tar.gz" /var/www
  15.     cd /var/www && tar xpf "$filiale.tar.gz"
  16.     rm "$filiale.tar.gz"
  17.     cp -f /home/manageo/MIGRATION/ClassMetadataInfo.php $filiale/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping
  18.     echo "Done unbackup for $filiale"
  19. done
  20.  
  21.  
  22. umount /mnt/partageLinux/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement