Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Rsync to backup an Ubuntu Server server. I'm getting a lot of permission denied messages. Is there a command I can use to see exactly what directories were denied? I could scroll back up through all the files, but that would take forever. Any help would be greatly appreciated.

share|improve this question
    
i think you have asked the same question on server fault serverfault.com/questions/345605/… .There some user have given good solution for it –  Mughil Dec 31 '11 at 19:19
add comment

1 Answer

up vote 1 down vote accepted

We'll need a bit more details. When are permissions denied and what do you want to achieve?

If I presumed right and it's denied when you try to upload files I would presume you can allow permissions to an RSync group to prevent it.

share|improve this answer
    
Thanks. It seems as if access is denied because I do not have root access on the server being backed up. I am using the following command: sudo rsync -av ubuntu@*******:/ /media/backup1/ubuntubackup. I figured out how to see where access was denied. Now, I am wondering how to get root access to my Ubuntu Server server, via Rsync. Once I log in through Rsync, I do not have the option to issue a sudo command. I understand that I can configure the Rsync daemon, instead of going through SSH, but I was wondering if there was a way to do it through SSH with Ubuntu. –  Arthur Dec 31 '11 at 19:57
    
I'm not an Rsync expert but it looks like the -e "ssh -l root" parameter from the other suggestion does that. –  Beanow Dec 31 '11 at 21:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.