Posted: 2009-08-11 10:51
i am trying to create a timestamp in a Backup Script. My Script pulls a File every 24 hours in a special folder, but i don't want to overwrite the old one. How can i create an timestamp?
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open user:email@example.com
# Change remote directory
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
get backup_current.tar.bz2 ***\backup_current.tar.bz2 --> timestamp here
# Exit WinSC
WinSCP Version 4.1.9
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
You can post new topics in this forum
And it's free!