View Single Post
  #8  
Old 12th August 2011, 20:50
andrercmeira andrercmeira is offline
Junior Member
 
Join Date: Aug 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use rsync in my server, vmail copy normaly, but www not copy,

i follow http://www.howtoforge.com/mirroring_with_rsync,

its work for vmail, my reverse dns files, but not for /var/www

Code:
root@johan:/var/vmail# rsync -avzu --delete --exclude=*/tmp/ --exclude=.bash_history -e "ssh -i /root/rsync/mirror-rsync-key" sincronismo@servidor1.izaz.com.br:/var/www/ /var/www/
receiving incremental file list
rsync: opendir "/var/www/clients/client1/web1/cgi-bin" failed: Permission denied (13)
IO error encountered -- skipping file deletion
rsync: opendir "/var/www/clients/client1/web1/ssl" failed: Permission denied (13)
rsync: opendir "/var/www/clients/client1/web1/web" failed: Permission denied (13)
rsync: opendir "/var/www/clients/client2/web2" failed: Permission denied (13)
rsync: opendir "/var/www/clients/client2/web3" failed: Permission denied (13)

sent 225 bytes  received 94091 bytes  188632.00 bytes/sec
total size is 49697052  speedup is 526.92
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1526) [generator=3.0.7]
Reply With Quote