Topic "Archive files when winscp backup is done?"

Author Message
[View user's profile]

Joined: 2016-01-23
Posts: 1
Location: Norway

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 Smile

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

# Exit WinSCP

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
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.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License