PDA

View Full Version : problem with restore



nishant
October 5th, 2008, 09:29 PM
hello everybody.

whenever i try to restore, there comes an error probably due to permission problem.


[root@vegayan50 dailyrun]# mysql-zrm --action restore --backup-set dailyrun --source-directory /var/lib/mysql-zrm/dailyrun/20081006103546/
restore:INFO: ZRM for MySQL Community Edition - version 2.0
dailyrun:restore:INFO: Incremental restore done for database Vegayan
dailyrun:restore:ERROR: could not delete /var/lib/mysql-zrm/dailyrun/20081006103546
dailyrun:restore:ERROR: Restore failed

[root@vegayan50 dailyrun]# ls -l -h
total 20K
drwx------ 2 root root 4.0K Oct 3 17:38 20081003173746
drwx------ 2 root root 4.0K Oct 3 17:39 20081003173925
drwx------ 2 root root 4.0K Oct 6 10:01 20081003180005
drwx------ 2 root root 4.0K Oct 6 10:22 20081006100002
drwx------ 2 root root 4.0K Oct 6 10:52 20081006103546
[root@vegayan50 dailyrun]# chmod 777 20081006103546/
[root@vegayan50 dailyrun]# ll
total 24
drwx------ 2 root root 4096 Oct 3 17:38 20081003173746
drwx------ 2 root root 4096 Oct 3 17:39 20081003173925
drwx------ 2 root root 4096 Oct 6 10:01 20081003180005
drwx------ 2 root root 4096 Oct 6 10:22 20081006100002
drwxrwxrwx 2 root root 4096 Oct 6 10:55 20081006103546
drwx------ 2 root root 4096 Oct 6 11:00 20081006110001
[root@vegayan50 dailyrun]# mysql-zrm --action restore --backup-set dailyrun --source-directory /var/lib/mysql-zrm/dailyrun/20081006103546/
restore:INFO: ZRM for MySQL Community Edition - version 2.0
dailyrun:restore:INFO: Incremental restore done for database Vegayan
dailyrun:restore:ERROR: could not delete /var/lib/mysql-zrm/dailyrun/20081006103546
dailyrun:restore:ERROR: Restore failed
[root@vegayan50 dailyrun]# ll
total 24
drwx------ 2 root root 4096 Oct 3 17:38 20081003173746
drwx------ 2 root root 4096 Oct 3 17:39 20081003173925
drwx------ 2 root root 4096 Oct 6 10:01 20081003180005
drwx------ 2 root root 4096 Oct 6 10:22 20081006100002
drwx------ 2 root root 4096 Oct 6 11:09 20081006103546
drwx------ 2 root root 4096 Oct 6 11:00 20081006110001


Plzz point out if i am missing something.

regards,
nishant

nishant
October 5th, 2008, 11:49 PM
hello everybody,

the problem was occuring bcoz i had used compression while doing backup.

when i used mysql-zrm-extract-backup and then mysql-zrm-restore it worked nicely.


regards
nishant