copying file to remote server in ubuntu using ssh code example
Example: copy files from an ubuntu server to remote server through ssh remote with cronjobs
tar cvzf - /path/to/myBase.sql | ssh USER@HOST "dd of=/path/to/backups/myBase$(date +\%Y\%m\%d\%H\%M\%S).tar.gz"