Remote Data Backup - Users Guide
Zipping Windows Files Via The Command LineThis guide will show you how to zip your files before you upload them to the backup server. Zipping your files into one zip file will save disk space and shorten your upload time. Note: Zipping your files before transfer is an optional feature, and not required.
1) Download Zip Executable File
2) Move executable file into the Windows folder
3) Add following line to the backup script file you previously created, before the rsync command.
This command collects all content from a directory name "mydir" on the "c" drive, and zips them into mydir.zip.
zip -r mydir.zip mydir
This command collects all excel files and zips them into mydir.zip.
zip -r mydir.zip . -i *.xls
Remember to add the new zip file to your rsync command.