rsync error

hi

I am using http://pastebin.com/d4b062d28 for rsync from src host to
dest host
the roots cron entry is "02 4 * * * su sms /usr/local/bin/
testrsync_mysql.sh"

I am getting error in the logs

building file list ... rsync: pop_dir "/root" failed: Permission
denied (13)
rsync error: errors selecting input/output files, dirs (code 3) at
flist.c(1356) [sender=2.6.9]


Am i missing something

Thanks and Regards

Kaushal
Kaushal Shriyan [ Fr, 04 April 2008 13:13 ] [ ID #1935289 ]

Re: rsync error

On 2008-04-04, kaushal <kaushalshriyan [at] gmail.com> wrote:
>
>
> hi
>
> I am using http://pastebin.com/d4b062d28 for rsync from src host to
> dest host
> the roots cron entry is "02 4 * * * su sms /usr/local/bin/
> testrsync_mysql.sh"
>
> I am getting error in the logs
>
> building file list ... rsync: pop_dir "/root" failed: Permission
> denied (13)
> rsync error: errors selecting input/output files, dirs (code 3) at
> flist.c(1356) [sender=2.6.9]
>
Your script runs as user sms, who doesn't have permission to read
the /root directory.
Bill Marcum [ Fr, 04 April 2008 19:12 ] [ ID #1935303 ]
Linux » comp.unix.shell » rsync error

Vorheriges Thema: math oriented script
Nächstes Thema: mv --reply=