<div dir="ltr"><div><div><div><div>Todd,<br><br></div>Thanks for your comments. I was not very clear on how I am making the backups.<br><br></div>Linux boxes - The machine with the usb drive attached is running rsnapshot (ssh & rsync) to backup all the Linux boxes to the usb drive. The rsnapshot script is run by cron at appropriate times. Restoring from the backups will most likely be via ssh/cp or maybe an rsync if I need to move a lot of files. <br><br>MacOS - the one laptop will access the usb drive over NFS using some native MacOS backup application. I could have used Samba, but it is slower than NFS, so I thought I would give NFS a try. I have to buy some software for the Mac box to read/write ext4, but it is not very expensive. Restores will be via NFS mount on the Mac box. I am a little out of my depth with the Mac box (Macbook Pro). <br><br></div>Do you think I should switch to Samba for the MacOS backup?<br><br>Thanks!<br><br></div>Mark<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 26, 2014 at 1:45 PM, Todd Millecam <span dir="ltr"><<a href="mailto:tyggna@gmail.com" target="_blank">tyggna@gmail.com</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>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"><div><div class="h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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><font color="#888888"><br><br>Mark<br></font></span></div>
<br></div></div>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div>Todd Millecam</div>
</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></div>