You can use this bash script for Backup your virtual hosts or similar folder structures.
- Recursive Folder Backup Utility for unix/linux based systems.
- Compress each folder with timestamp based name.
- Upload remote FTP Server
- Delete uploaded backup file from temporary folder.
PS: Make sure you define the folders correctly.