Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-03-2009, 04:30 PM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 5
Rep:
|
samba - windows files lose "created on" date stamp when moved to samba share on linux
I know linux doesn't support "created on" date stamps consequently when copying or moving files from windows hosts via samba shares to linux box running 2.6.18-128.el5 I lose the 'created on' date stamp for each file.
Is there a config setting in smb.conf option to retain this date stamp or some other work around.
Thanks in advance
|
|
|
09-30-2009, 05:35 PM
|
#2
|
Senior Member
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
|
If you use the -p parameter while copying with cp, it should preserve the date. (see man cp) Or am I misunderstanding the question?
|
|
|
09-30-2009, 08:10 PM
|
#3
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,434
|
I agree, try cp -p with one file and let us know what happens. Could be useful for all of us.
Use stat to check all 3 times (atime/ctime/mtime) http://linux.die.net/man/1/stat
|
|
|
10-01-2009, 02:40 AM
|
#4
|
Member
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Rep: 
|
Quote:
Originally Posted by jaredk51
I know linux doesn't support "created on" date stamps consequently when copying or moving files from windows hosts via samba shares to linux box running 2.6.18-128.el5 I lose the 'created on' date stamp for each file.
Is there a config setting in smb.conf option to retain this date stamp or some other work around.
Thanks in advance
|
The problem is that Linux (and Unices in general) don't have a "created-on" date stamp. All appearance to the contrary, the "ctime" date field only reflects the last time a file's inode was changed, which could change for any number of reasons.
This means if you succeeded in getting a creation time, you would have nowhere to put it -- at least, nowhere reliable and immutable.
|
|
|
11-09-2009, 04:00 PM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Quote:
Originally Posted by chrism01
I agree, try cp -p with one file and let us know what happens. Could be useful for all of us.
Use stat to check all 3 times (atime/ctime/mtime) http://linux.die.net/man/1/stat
|
jaredk51, I take it your test was unsuccessful.
|
|
|
02-19-2010, 03:13 PM
|
#6
|
LQ Newbie
Registered: Aug 2009
Posts: 5
Original Poster
Rep:
|
Sorry guys.... this got pushed above me in the hierarchy and I never looked back.
Its a non-issue for us anymore so I didn't try the fix.
thanks for the replies tho.
|
|
|
All times are GMT -5. The time now is 12:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|