WINSCP to copy & paste opened files !
Hello,
I've found out, by accident, that WINSCP enables to update (incremental backup), a newer version of file even if a XP/WIN7 client computer as already opened this specific file (same name) on the destination location.
Example:
I use SYNCBACK SE to make a backup (fast backup) of some modified files (example PDF) to a FTP server.
Then, I use the script shown below to update the file back to my network server EVEN IF A CLIENT COMPUTER HAS OPENED THE FILE (using Adobe Reader for example)!
Did you already notice this trick ?
I found it AMAZING !
You will find below a simple script in use:
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open ftp://website:complicated@IP
# Change remote directory
cd /home/site/xxx/yyy
# Force binary mode transfer
option transfer binary
# Download the remote PDF file(s) to the specified directory and delete immediately the files after that
get -delete *.pdf "\\Server\folder\"
# Disconnect
close
# Exit WinSCP
exit
I've found out, by accident, that WINSCP enables to update (incremental backup), a newer version of file even if a XP/WIN7 client computer as already opened this specific file (same name) on the destination location.
Example:
I use SYNCBACK SE to make a backup (fast backup) of some modified files (example PDF) to a FTP server.
Then, I use the script shown below to update the file back to my network server EVEN IF A CLIENT COMPUTER HAS OPENED THE FILE (using Adobe Reader for example)!
Did you already notice this trick ?
I found it AMAZING !
You will find below a simple script in use:
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect
open ftp://website:complicated@IP
# Change remote directory
cd /home/site/xxx/yyy
# Force binary mode transfer
option transfer binary
# Download the remote PDF file(s) to the specified directory and delete immediately the files after that
get -delete *.pdf "\\Server\folder\"
# Disconnect
close
# Exit WinSCP
exit