<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NFS and backup to NAS in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372963#M13908</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a Linux server with NFS enabled which copies/back-ups all files to a NAS (network attached storage) server everyday (running a script in crontab). The NAS is nothing else than a Linux server running kernel 2.4.20.&lt;BR /&gt;&lt;BR /&gt;The problem is that when a file is copied to the NAS, it looses the userID.&lt;BR /&gt;eg. &lt;BR /&gt;(on the main server)&lt;BR /&gt;drwx------   34 jano     jano         4.0k Sep  6 09:48 jano&lt;BR /&gt;&lt;BR /&gt;(on the NAS)&lt;BR /&gt;drwx------    3 nfsnobody nfsnobody       17 Sep  6 08:54 jano&lt;BR /&gt;&lt;BR /&gt;What should I do to maintain the userID information? &lt;BR /&gt;&lt;BR /&gt;I also tried cp with -p to preserve file attributes but received:&lt;BR /&gt;cp: preserving ownership for `/mnt/nas/home/jano/.kde/share/fonts': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;Any comments welcome...&lt;BR /&gt;Jan</description>
    <pubDate>Mon, 06 Sep 2004 08:33:14 GMT</pubDate>
    <dc:creator>Jano_1</dc:creator>
    <dc:date>2004-09-06T08:33:14Z</dc:date>
    <item>
      <title>NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372963#M13908</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a Linux server with NFS enabled which copies/back-ups all files to a NAS (network attached storage) server everyday (running a script in crontab). The NAS is nothing else than a Linux server running kernel 2.4.20.&lt;BR /&gt;&lt;BR /&gt;The problem is that when a file is copied to the NAS, it looses the userID.&lt;BR /&gt;eg. &lt;BR /&gt;(on the main server)&lt;BR /&gt;drwx------   34 jano     jano         4.0k Sep  6 09:48 jano&lt;BR /&gt;&lt;BR /&gt;(on the NAS)&lt;BR /&gt;drwx------    3 nfsnobody nfsnobody       17 Sep  6 08:54 jano&lt;BR /&gt;&lt;BR /&gt;What should I do to maintain the userID information? &lt;BR /&gt;&lt;BR /&gt;I also tried cp with -p to preserve file attributes but received:&lt;BR /&gt;cp: preserving ownership for `/mnt/nas/home/jano/.kde/share/fonts': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;Any comments welcome...&lt;BR /&gt;Jan</description>
      <pubDate>Mon, 06 Sep 2004 08:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372963#M13908</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-09-06T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372964#M13909</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try doing archive by tar with -p option. You will have no problem to restore perm.&lt;BR /&gt;&lt;BR /&gt;cd /home&lt;BR /&gt;tar cpvf /mnt/nas/home.tar home&lt;BR /&gt;&lt;BR /&gt;or you can use cpio.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2004 08:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372964#M13909</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-06T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372965#M13910</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;cd / not /home   :)</description>
      <pubDate>Mon, 06 Sep 2004 08:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372965#M13910</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-06T08:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372966#M13911</link>
      <description>Hi Slavomir,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer, but your solution by backing-up to an archive with tar is not the ideal solution for me, so I prefer not to use it.&lt;BR /&gt;&lt;BR /&gt;Jano</description>
      <pubDate>Mon, 06 Sep 2004 08:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372966#M13911</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-09-06T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372967#M13912</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you NAS is just linux - I think you have to reconfigure you NAS server&lt;BR /&gt;by adding to /etc/exports parameter no_all_squash &lt;BR /&gt;&lt;BR /&gt;look at man page for exports &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2004 09:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372967#M13912</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2004-09-06T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372968#M13913</link>
      <description>If you are running the backup as root, then add the following in /etc/exports on the NAS Linux server:&lt;BR /&gt;no_root_squash -- Turn  off root squashing.&lt;BR /&gt;Then run exportfs -r&lt;BR /&gt;&lt;BR /&gt;If using cp to copy the files then use the following switch/option: -a   (or --archive); this is same as -dpR&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Ross&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2004 20:29:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372968#M13913</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2004-09-06T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372969#M13914</link>
      <description>Hi Ross,&lt;BR /&gt;&lt;BR /&gt;I tried cp -a&lt;BR /&gt;Look at the output below and please tell me what you think.&lt;BR /&gt;&lt;BR /&gt;cp: preserving ownership for `/mnt/nas/file.file': Operation not permitted&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jano</description>
      <pubDate>Wed, 08 Sep 2004 11:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372969#M13914</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-09-08T11:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372970#M13915</link>
      <description>Please disregard my previous post.&lt;BR /&gt;&lt;BR /&gt;Ross,&lt;BR /&gt;&lt;BR /&gt;I made the change to the exports file, ran exportsfs -r, and tested with cp -a and it worked 100% !!!&lt;BR /&gt;&lt;BR /&gt;I will run some more tests to see if everything works.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jano</description>
      <pubDate>Wed, 08 Sep 2004 11:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372970#M13915</guid>
      <dc:creator>Jano_1</dc:creator>
      <dc:date>2004-09-08T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: NFS and backup to NAS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372971#M13916</link>
      <description>Good job! Glad I could help...  Ross</description>
      <pubDate>Wed, 08 Sep 2004 12:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/nfs-and-backup-to-nas/m-p/3372971#M13916</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2004-09-08T12:30:32Z</dc:date>
    </item>
  </channel>
</rss>

