Skip to content

Instantly share code, notes, and snippets.

@rafabarzotto
Created March 1, 2017 17:25
Show Gist options
  • Save rafabarzotto/efb9d5eefecb538385d0f63e9273f5d4 to your computer and use it in GitHub Desktop.
Save rafabarzotto/efb9d5eefecb538385d0f63e9273f5d4 to your computer and use it in GitHub Desktop.
#!/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