Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to make my rsnapshot-backups available to non-root users on a Ubuntu server. There is a step-by-step instruction in the rsnapshot HOWTO, which I think I've followed to the letter.

The HOWTO tells me to create the directories /.private/.snapshots/ (backup folder) and /.snapshots/ (mount point).

In /etc/exports, add /.private/.snapshots/ as a read only NFS export:

/.private/.snapshots/  127.0.0.1(ro,no_root_squash)

In /etc/fstab, mount /.private/.snapshots/ read-only under /.snapshots/

localhost:/.private/.snapshots/   /.snapshots/   nfs    ro   0 0

However, when I issue the command:

mount /.snapshots/

I get this error message:

mount.nfs: access denied by server while mounting localhost:/.private/.snapshots/

The package nfs-kernel-server is installed and I restarted it after editing /etc/exports.

What did I miss?

share|improve this question

1 Answer 1

Not entirely sure why but if you force it to NFS version 3 it should work:

mount -t nfs -o vers=3 localhost:/.private/.snapshots/   /.snapshots

The corresponding line for your fstab file would be

localhost:/.private/.snapshots  /.snapshots     nfs ro,vers=3,auto      0   0
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.