backup hmailserver with winscp

This is the backup.scp file.

# Backup to server nightly
open backup
option batch continue
option confirm off
option reconnecttime 9
synchronize remote -transfer=binary -criteria=time -delete "C:\Apps\WinSCP" "/backups/hmail/WinSCP/"
synchronize remote -transfer=binary -criteria=time -delete "C:\Apps\scripts" "/backups/hmail/scripts/"
synchronize remote -transfer=binary -criteria=time -delete "C:\Apps\sa" "/backups/hmail/sa/"
synchronize remote -transfer=binary -criteria=time -delete "C:\Apps\nxlog" "/backups/hmail/nxlog/"
synchronize remote -transfer=binary -criteria=time -delete "C:\Backups" "/backups/hmail/Backups/"
synchronize remote -transfer=binary -criteria=time -delete "C:\Apps\hMailServer" "/backups/hmail/hMailServer/"
close
exit

This is the backup.bat file

@echo off
c:
cd "\apps\winscp"
winscp.com /script=backup.scp
technotes/backup_hmailserver_with_winscp.txt · Last modified: 2023-08-08 00:35 by snork
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki