samba - windows files lose "created on" date stamp when moved to samba share on linux
Linux - SoftwareThis 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.
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.
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.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.