
rsync is a differential backup and file synchronization tool widely used in Unix-like operating systems. WinSCP offers scripting interface that you can use to automate many operations that it supports, including file transfers, synchronization and other operations. You may want to see detailed documentation of the scripting functionality instead. However, rsync only transfers the changed data, so if your zip file is 10 GB, and then you add a text file to Directory1, rsync will know that is all you added (even though it’s in a zip) and transfer only the few kilobytes of changed data. Grsync is a graphical user interface for rsync. This guide contains a simplified description of automating operations on FTP/SFTP server with WinSCP. Initially, you may think this method would prove inefficient for large backups, considering the zip file will change every time the slightest alteration is made to a file. The command above takes the files from Directory1, puts them in /ZippedFiles/archive.zip and then rsyncs that directory to Directory2.

$ zip /ZippedFiles/archive.zip /Directory1/ & rsync -av -delete /ZippedFiles/ /Directory2/ You will need to specify where you would like the zip file to be placed, and then rsync that directory to your backup directory.
#Automate grsync how to#
RELATED: How to Manage an SSH Config File in Windows and Linux Other useful featuresĪnother useful thing you can do is put your backups into a zip file. It has pretty simple GUI interface which is self explanatory. For more info about Cron, please see the man pages. Once you have it installed, You can invoke the GUI by just typing grsync. Most people will just want a simple weekly or daily backup, and what we have shown you can easily accomplish that. Then fill up the information for source and destination servers. A new pop up window will show up, Give your session a name. Create a new session by going sessions > add.

Cron can get a lot more in-depth than this, but to go on about it would be beyond the scope of this tutorial. One of the great benefit of using grsync is that it can be used to syncup folders between two servers.
