Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Archive files when winscp backup is done?

That's not a task for WinSCP.

Just wrap the WinSCP call to a batch file and archive/compress the files from the batch file after WinSCP finishes.
DarkCloud

Archive files when winscp backup is done?

Hi

I am running a scrip for backing up my remote web server files over SFTP, and its working great with task scheduler, so all OK :)

What i would like, is to have the same script zip/rar the files before it exit, preferably with dated filename so that i can have mutiple backup stored localy.

any tips on what to add to my script?

option batch on

option confirm off

# Connect - format: user:password@host
open winscp-sftp://user:password@host

# Change remote directory
cd /home/

# Force binary mode transfer
option transfer binary

# Download backup file to the local directory
get *.* P:\Backup\

# Disconnect
close

# Exit WinSCP
exit


DC