Hi,
Ok, i'm trying to automate sending a DB backup from a linux box to a remote Windows PC via FTP. I can connect, send the file and create a folder, however I require that the backups be differentiated by date. Here is what my script looks like:
Code:
open *.*.*.*
user username password
lcd /location/of/DB/backup
mkdir %Y/%m/%d
cd %Y/%m/%d
put test.txt
bye
quit
This does not work, its just creates a folder named "%Y" with a folder inside it called "%m" with a "%d" folder inside that.
How would I go about creating folders with the date structure above on a the remote windows machine? All advice and help appreciated.