-
-
Save anonymous/9414102308d5b4ce6097 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/bash | |
cd /tmefiles | |
mkdir /tmefiles/tmebackup_"`date +%m-%d-%Y`" | |
export TSTAMP=$(date +%Y-%m-%d) | |
tar --best TME31-$TSTAMP | |
for addr in 172.29.34.{31..33}; do echo "$addr"; done | |
smbclient //$addr/Desktop "" -N -Tc "TME$addr-$TSTAMP.tar" | |
#smbclient //172.29.34.32/Desktop "" -N -Tc "TME32-$TSTAMP.tar" | |
#smbclient //172.29.34.33/Desktop "" -N -Tc "TME33-$TSTAMP.tar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment