1 |
I am running the command |
2 |
|
3 |
/usr/bin/rsync -avO /var/lib/mysql sms@hostaa:/var/lib/ > |
4 |
/tmp/rsync-${TIMESTAMP}.log 2>&1 |
5 |
|
6 |
I am getting the below error in the log file |
7 |
|
8 |
mysql/ |
9 |
rsync: failed to set permissions on "/var/lib/mysql": Operation not |
10 |
permitted (1) |
11 |
rsync: failed to open "/var/lib/mysql/ib_logfile0", continuing: Permission |
12 |
denied (13) |
13 |
mysql/ib_logfile0 |
14 |
rsync: failed to open "/var/lib/mysql/ib_logfile1", continuing: Permission |
15 |
denied (13) |
16 |
mysql/ib_logfile1 |
17 |
rsync: failed to open "/var/lib/mysql/ibdata1", continuing: Permission |
18 |
denied (13) |
19 |
mysql/ibdata1 |
20 |
rsync: failed to open "/var/lib/mysql/master.info", continuing: Permission |
21 |
denied (13) |
22 |
mysql/master.info |
23 |
rsync: failed to open "/var/lib/mysql/SCHEDULER/ScheduleTasks.MYD", |
24 |
continuing: Permission denied (13) |
25 |
|
26 |
I set the setfacl command using the below command for the user ssp |
27 |
|
28 |
sudo setfacl -R -m g:ssp:rwx /var/lib/mysql |
29 |
sudo setfacl -R -m u:ssp:rwx /var/lib/mysql |
30 |
|
31 |
Am i missing any thing |
32 |
|
33 |
Thanks and Regards |
34 |
|
35 |
Kaushal |