I am trying to automate multiple switch backups from the windows host, for this i have made below script
plink.exe admin@xxxx -pw *** configupload -p ftp \xxx,eccadmin,config.txt,xxx
The above script is taking backup successfully, but I want to insert date and time stamp into the config file name, say 2015-01-01-config.txt
.
I have tried this:
set arg1= date/T
plink.exe admin@xxxx -pw *** configupload -p ftp \xxx,eccadmin,%arg1%config.txt,xxx
but it doesn't work. If you have a better idea, please answer.