Page 1 of 1

rsync backup /lost+found Permission denied (13)

Posted: Sun Sep 20, 2009 9:10 pm
by Headworx
Hi,

I've set up a backup job on my NAS server (via rsync) and when backing up the data folder, I am getting:

rsync: opendir "/lost+found" (in data) failed: Permission denied (13)

Why is it happening and how to fixed this?

Cheers,
Headworx

Re:rsync backup /lost+found Permission denied (13)

Posted: Sat Oct 03, 2009 10:22 am
by Ettershaus
The "lost+found" directory within Unix (and all derivates as Linux) is a special directory (on all unix-type filesystems) used to store files (and part of them) while the system makes a file-system check.

Only root have access to this direktory. This directory exist in the root of each filesystem (partition).

You can delete it but get errors after the next mounting.

This FS will be createt during the FS-creation an can be recreated with a special command, when ist accidential deleted.

http://tldp.org/LDP/Linux-Filesystem-Hi ... found.html

* Do you have this directory within your /data-directory?
* What are the rights for this directory?
* Can you access this diretory?
* What do you get during a files-system check?

Re:rsync backup /lost+found Permission denied (13)

Posted: Sat Oct 03, 2009 9:41 pm
by Headworx
yes in my case the /lost+found is in the /data directory

the rsync logs are as follows:

Job: 001
Protocol: rsync
Source: 192.168.198.185::data
Destination: [backup]/Backup/MeteoPlug/data
receiving incremental file list
rsync: opendir "/lost+found" (in data) failed: Permission denied (13)

The rights are:
drwx------ 2 root root 16384 Jun 14 10:48 lost+found

I can cd to this directory when logged as root via ssh. but rsync (logging as root too) cannot access it...

generally it is not a big problem... as the backup job gets through... just generates this one error in the log file...

Cheers,
Headworx