LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-18-2007, 09:36 PM   #1
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Rep: Reputation: 43
Need to reload NAS while keeping original timestamps


Let me be the first to admit that I kludged this on the first go round. Now that that's out of the way, here's the backstory:

My company has come close to filling the ~700GB of storage built into our file server so I ordered and installed a Linksys NSS6000 NAS and filled it with 4 Seagate 750GB drives (checked their compatibility list before purchasing the drives). The system gave me a few problems in the configuration stage (mostly to do with user permissions) primarily because it's a Linux kernel being forced into providing security settings that can be edited from a Windows client. By the time I got that taken care of, the users were getting anxious (management included) to see the new box in action. I did a not-so-quick copy of the data from the server to the NAS over a dedicated gigabit network connection and remapped all clients to the new NAS.

The problem is that the copy did not include the --preserve=timestamps option. A couple of users (CEO being first on the list) have pointed out to me that the original timestamps are critical to the way they search through the archives of old information. Non-negotiable.

I do not have a CLI for the NAS, just a browser based interface over the local network. I waited on hold with LinkSYS for around 30 minutes before hanging up, so I don't know if a CLI is available. The user manual and the online information avoid the subject. I can't find any info one way or the other and my google-fu is coming up with nothing but ads and reviews. I've even read a few reviews, but they didn't tell me anything I didn't already know.

The solution I need is to be able to re-copy (I looked into the dd command, but that didn't seem like the right way to go for transferring data over the network) all of our data over to the NAS from the server preserving the original timestamps, but not overwriting anything that has changed since the day that everyones drives were re-mapped to the NAS. Anything that has changed since then needs to keep its new timestamp. I've got the basic command down to:

cp --preserve=timestamps <something to not overwrite new stuff> /mnt/Z/* /mnt/z

/mnt/Z/ = server's shared directory. Note: 'Z' is capitalized
/mnt/z/ = NAS share mounted on the server as an smbfs share. 'z' is not capitalized

Server: Dell Poweredge 1800 running Debian 3.1 Sarge, Samba 3.24
NAS: LinkSYS NSS6000 running Linux 2.6.17 kernel (probably their own distro, not sure)

As always, any help at all would be greatly appreciated.

-Dave
 
Old 06-19-2007, 01:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
nothing to do with networking. moved to Linux - general.
 
Old 06-19-2007, 05:13 PM   #3
New2Linux2
Member
 
Registered: Jan 2004
Location: Arizona
Distribution: Debian
Posts: 153

Original Poster
Rep: Reputation: 43
Ok. Getting it in the right place was another goof on my part. Thanks, acid_kewpie.

Am I looking at this the wrong way? Is there another command I should be using instead of "cp"? I'm just looking for a viable solution, not a perfect solution. If it requires a script, I'll need a pointer to a decent tutorial (my script capabilities are next-to non-existent).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat reload servlet is very slow, but reload jsp is fast and good? gsbarry Programming 2 04-28-2006 09:34 PM
tar and directory timestamps carlbrans Linux - Software 4 02-13-2006 05:28 PM
How do I insert timestamps in bash? spiffytech Linux - Software 5 01-27-2006 04:00 AM
squid timestamps chamkila Linux - General 1 05-08-2003 08:59 AM
Timestamps Config Programming 2 04-22-2002 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration