- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: NFS and backup to NAS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 01:33 AM
09-06-2004 01:33 AM
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.
The problem is that when a file is copied to the NAS, it looses the userID.
eg.
(on the main server)
drwx------ 34 jano jano 4.0k Sep 6 09:48 jano
(on the NAS)
drwx------ 3 nfsnobody nfsnobody 17 Sep 6 08:54 jano
What should I do to maintain the userID information?
I also tried cp with -p to preserve file attributes but received:
cp: preserving ownership for `/mnt/nas/home/jano/.kde/share/fonts': Operation not permitted
Any comments welcome...
Jan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 01:53 AM
09-06-2004 01:53 AM
Re: NFS and backup to NAS
try doing archive by tar with -p option. You will have no problem to restore perm.
cd /home
tar cpvf /mnt/nas/home.tar home
or you can use cpio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 01:54 AM
09-06-2004 01:54 AM
Re: NFS and backup to NAS
cd / not /home :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 01:59 AM
09-06-2004 01:59 AM
Re: NFS and backup to NAS
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.
Jano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 02:26 AM
09-06-2004 02:26 AM
Re: NFS and backup to NAS
If you NAS is just linux - I think you have to reconfigure you NAS server
by adding to /etc/exports parameter no_all_squash
look at man page for exports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2004 01:29 PM
09-06-2004 01:29 PM
Solutionno_root_squash -- Turn off root squashing.
Then run exportfs -r
If using cp to copy the files then use the following switch/option: -a (or --archive); this is same as -dpR
HTH,
Ross
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 04:33 AM
09-08-2004 04:33 AM
Re: NFS and backup to NAS
I tried cp -a
Look at the output below and please tell me what you think.
cp: preserving ownership for `/mnt/nas/file.file': Operation not permitted
Regards,
Jano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 04:39 AM
09-08-2004 04:39 AM
Re: NFS and backup to NAS
Ross,
I made the change to the exports file, ran exportsfs -r, and tested with cp -a and it worked 100% !!!
I will run some more tests to see if everything works.
Regards,
Jano
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2004 05:30 AM
09-08-2004 05:30 AM