I have setup rsync to backup my server to a remote location. For some odd reason, the files that are not on the server (but are present on the remote destination) are not removed on the remote folder. I wrote a cron script to backup mysql database on a nightly basis and keep the 5 newest backups.Those are .gz files created from mysqldump inside the folder. Weird how it copies the new .gz files to remote location but do not delete the ones that are not present on my server.
those are the first 7 lines of the daily rsync email. could that be the why?
My guess (from reading the error message...) is that the rsync process got a "permission denied" error reading the directory /usr/home/loww0/server/backup/cpbackup/daily/cdtuu/homedir/eggdrop1.6.15/doc/html/chat
Check the file ownership and permissions and see if there is anything wrong there. What output do you get from
ls -l /usr/home/loww0/server/backup/cpbackup/daily/cdtuu/homedir/eggdrop1.6.15/doc/
ls -l /usr/home/loww0/server/backup/cpbackup/daily/cdtuu/homedir/eggdrop1.6.15/doc/html/
Assuming this server is being run as a shared server, you probably don't want eggdrop on there anyway. Many hosts do not allow IRC bots.
can you tell me the command to give permission to access that folder?
Since your local file permissions are missing important bits (such as the directory above, which has no read or write bit set on it), Rsync is transferring the permissions as they are to the remote server. If you change it on the local server, it should automatically be mirrored to the remote server. You could also log in to the remote server and use the "chmod" command, even if you're running as a regular user on the remote side.
A simple "chmod u+r sshd" in that directory should restore the owner read bit.