<div dir="ltr"><div>NFS exports might not be the technology you want to use. If it's possible, I'd setup an rsync script, because that will let you preserve user permissions, directory structure, time stamp, and let you resume partial backups, and it's much easier to set it up on a timer via a cron script--it takes about 20 minutes to learn how to use and script with so it's really a good time investment. I was in a shop that did NFS exports for a while only to find the backups weren't always viable and only had about a 70% success rate for a usable nightly backup. When we switched over to rsync, we would only get one bad backup every two months.<br></div>NFS just backs things up based on the Unix User ID in /etc/passwds (or whatever PAM authentication module you're using, so you'd really need to setup NIS in your house for this to work properly) on the host machine. If the user doesn't exist, it will preserve the user id and permissions by default, but if that user/group doesn't exist on the server hosting the backup, then you won't have read-write permissions to restore it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 26, 2014 at 12:52 PM, Mark Phillips <span dir="ltr"><<a href="mailto:mark@phillipsmarketing.biz" target="_blank">mark@phillipsmarketing.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>I am setting up a usb drive to act as a NAS for backing up a couple of computers (Linux and Mac) on my network. I have it running, but I want to make sure I have the correct settings.<br><br></div><div>I read quite a few Debian and Ubuntu howtos about NFS, but they sometimes offered conflicting information. For the backups, I want to preserve the file permissions, time stamp, etc.<br></div><div><br></div>In /etc/exports I have<br><br><span style="font-family:arial narrow,sans-serif">/media/backup 192.xxx.xxx.0/24(rw,sync,root_squash,no_subtree_check,fsid=0,insecure)</span><br><br></div>The insecure is for Macs to access on ports other than 1024....at least that is what one article said. It does not mean the connection is insecure....<br><br></div>/etc/fstab for the usb drive<br><br><span style="font-family:arial narrow,sans-serif">UUID=6997d1c2-5ed7-4f32-9d5e-564cadd7bc6c /media/backup ext4 rw,nodev,noexec,noatime,nodiratime,sync,data=ordered 0 0</span><br><br></div>Thanks!<span class="HOEnZb"><font color="#888888"><br><br>Mark<br></font></span></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Todd Millecam</div>
</div>