You are not very prodigal of details, aren't you?
Anyway, first you have to establish what command to use for copying a directory. If you can access the remote server via ssh you can use either scp -R
. Then you can insert the command directly in the crontab or put it in a script and execute this script from the crontab. I assume you know how to edit the crontab, so you can simply do something like:
0 6 * * * /usr/bin/scp -Rq /path/to/dir user@host:/path/to/destination
where you have to substitute the /path/to/dir, user, host and /path/to/destination items with their real values. The above crontab entry executes every day at 6:00 AM. To have this accomplished automatically, you have to set-up a passwordless authentication using ssh-keys. Similarly, using rsync over ssh you can try something like
0 6 * * * /usr/bin/rsync -az -e ssh /path/to/dir user@host:/path/to/destination