crontab -e and rsync (2 diff questions)
My first question has to do with crontab -e command. I can edit the file fine, my question is, how do I save it? When I run that command it uses nano instead of vi, so I can't just use esc :wq, instead, I use ctrl X, then type 'yes' and then it brings me to a set of different Options (write to Mac, write to DOS, etc..). Here I am not sure what to do. So, my question is rather simple, how do I save the new cron added to the crontab -e file? I am using CentOS 4.2Alternatively, I went to /etc/crontab and used vim to modify it and add the cron straight in there with the 'root' setting (this is for chkrootkit). It saved fine, but, when I do crontab -l, it does not show up.
As for the second issue, I am going to backup my files offsite to a different server. And using FTP will take too long and too many resources, besides, it wont move everything. So, I am thinking of using RSYNC. Does anyone know of any good places to see exactly how this works? (I have found the main site, I am looking for something more specific to a server to server syncing walkthrough).
Thank you for the help