Question : copy files from an ubuntu server to remote server through ssh remote with cronjobs
Answered by : lucky-lark-t663zemkp5gi
tar cvzf - /path/to/myBase.sql | ssh USER@HOST "dd of=/path/to/backups/myBase$(date +\%Y\%m\%d\%H\%M\%S).tar.gz"
Source : https://askubuntu.com/questions/957016/cron-job-dump-and-scp-tar-dump-to-remote-server | Last Update : Sun, 14 Feb 21