You are not logged in.

#1 2011-04-01 04:19:10

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

rdiff-backup over NFS: root can't write

Hi,

I'm trying to back up one computer (named archtop) to another (named archbox) using rdiff-backup. I'm running rdiff-backup as root because a lot of system files can't be accessed as any other user. I'm getting an error when I run rdiff-backup because root can't write to the NFS share:

OSError: [Errno 13] Permission denied: '/data/backups/devices/laptops/archtop/rdiff-backup-data/increments'

I'm not sure why this is - shouldn't root be able to write anywhere? In any case, I modified /etc/group to add root to the nobody group (all the files on the share are nobody:nobody and 755), but that didn't help either. I can write to NFS just fine as my user, but then I can't access a lot of the system files. Both machines are running Arch x64.

Here's the relevant line in /etc/exports on archbox:

/data   archtop(rw,sync,fsid=0,subtree_check)

Here's the relevant line in /etc/fstab on archtop:

archbox:/  /data/  nfs4 rw,nfsvers=4,noauto,user 0 0

Here's my rdiff-backup command:

rdiff-backup --exclude-special-files --exclude-globbing-filelist /etc/rdiff-exclude-list / /data/backups/devices/archtop

Here's the contents of my rdiff-exclude-list:

- /mnt/*
- /data/*
- /media/*
- /dev/*
- /proc/*
- /sys/*
- /tmp/*
- /lost+found
- /home/lost+found
- /boot/lost+found

Any ideas?

Thanks!

Last edited by w1ntermute (2011-04-01 04:23:59)

Offline

#2 2011-04-01 04:56:42

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: rdiff-backup over NFS: root can't write

Add the 'no_root_squash' option to the others in /etc/exports

Offline

#3 2011-04-02 00:20:13

w1ntermute
Member
Registered: 2009-06-28
Posts: 146

Re: rdiff-backup over NFS: root can't write

fukawi2 wrote:

Add the 'no_root_squash' option to the others in /etc/exports

I'd tried that before, but it only worked after I restarted archtop. Things seem to be working now.

Offline

Board footer

Powered by FluxBB