Created
March 1, 2017 17:25
-
-
Save rafabarzotto/efb9d5eefecb538385d0f63e9273f5d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Backups do Endian em uma unidade de rede | |
#Por Rafael Barzotto | |
#sed -i -e 's/\r$//' endianbkp.sh | |
USUARIO="bkpefw" | |
SENHA="qwe123" | |
SERVIDOR="192.168.250.100" | |
COMPARTILHAMENTO="bkpefw" | |
mount -o username=$USUARIO,password=$SENHA //$SERVIDOR/$COMPARTILHAMENTO /opt/bkptemp | |
cp /var/backups/*.tar.gz /opt/bkptemp/endian01 | |
umount /opt/bkptemp/ | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment