[opensuse] Retaining the correct timestamp
I copy files between computers using an USB flashdisc. One undesirable effect is that the timestamp of the original file is 'destroyed' and overwritten by the timestamp when the copying occurs. I want to be able to retain the original timestamp. There is the 'noatime' parameter which can be added to the HD entries in fstab but will this solve my problem (if I add this 'noatime' parameter on all the computers)? Any suggestions greatly appreciated. Cheers. -- Never believe anything until it's been officially denied. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Basil Chupin escribió:
One undesirable effect is that the timestamp of the original file is 'destroyed' and overwritten by the timestamp when the copying occurs. I want to be able to retain the original timestamp.
use the "-p" flag of the "cp" command.
There is the 'noatime' parameter which can be added to the HD entries in fstab but will this solve my problem (if I add this 'noatime' parameter on all the computers)?
noatime will make your filesystem NOT to update the **access** time of your files.
Cristian Rodriguez R. wrote:
Basil Chupin escribió:
One undesirable effect is that the timestamp of the original file is 'destroyed' and overwritten by the timestamp when the copying occurs. I want to be able to retain the original timestamp.
use the "-p" flag of the "cp" command.
Thanks for this.
I normally use mc (midnight commander) and unfortunately it doesn't have
an option equivalent to -p so I now have to adapt myself to using a
command line for copying
There is the 'noatime' parameter which can be added to the HD entries in fstab but will this solve my problem (if I add this 'noatime' parameter on all the computers)?
noatime will make your filesystem NOT to update the **access** time of your files. Ah, OK- it only works on the Accessed Date and not on the Modified(/Created) Date.
Thanks again. Cheers. -- Never believe anything until it's been officially denied. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-03-17 at 19:01 +1100, Basil Chupin wrote:
I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying
. (Anyone know of a 'fox' for mc to put in this cp's -p option?)
It keeps the timestamp for me. Just tried to make sure. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF+6NGtTMYHG2NR9URAlcNAJ0dm02jODFX2kBWETbHhLCOfry3fgCdFPlp 4/mWBH6Qj5PbcHsI+61jtjo= =DuSu -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2007-03-17 at 19:01 +1100, Basil Chupin wrote:
I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying
. (Anyone know of a 'fox' for mc to put in this cp's -p option?) It keeps the timestamp for me. Just tried to make sure.
Thank you, Carlos! You've given me the hint which has solved my problem. When copying a directory from one computer to another I have been deselecting the "preserve Attributes" because I am copying files from one user's Home directory to be copied into another users Home directory on the other computer (I am a (different) user on 2 different computers- if you follow what I mean). Deselecting the attributes is what is causing the timestamp to be altered on the copied files. Now that I have left this "preserve Attributes" ticked all files have retained their original timestamps. Again thanks for the "push" in the right direction <g>. Cheers. -- Never believe anything until it's been officially denied. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-03-17 at 23:09 +1100, Basil Chupin wrote:
It keeps the timestamp for me. Just tried to make sure.
Thank you, Carlos! You've given me the hint which has solved my problem.
When copying a directory from one computer to another I have been deselecting the "preserve Attributes" because I am copying files from one user's Home directory to be copied into another users Home directory on the other computer (I am a (different) user on 2 different computers- if you follow what I mean).
Yes.
Deselecting the attributes is what is causing the timestamp to be altered on the copied files. Now that I have left this "preserve Attributes" ticked all files have retained their original timestamps.
But maybe now the ownership is wrong.
Again thanks for the "push" in the right direction <g>.
Welcome :-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF+9z+tTMYHG2NR9URAkOUAJ9NEe62MvuNmP/uvmwYDDzWawdJKACeL1gy TOwI/MklQHcdQDlYh6ypIrU= =YSib -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2007-03-17 at 23:09 +1100, Basil Chupin wrote:
It keeps the timestamp for me. Just tried to make sure.
Thank you, Carlos! You've given me the hint which has solved my problem.
When copying a directory from one computer to another I have been deselecting the "preserve Attributes" because I am copying files from one user's Home directory to be copied into another users Home directory on the other computer (I am a (different) user on 2 different computers- if you follow what I mean).
Yes.
Deselecting the attributes is what is causing the timestamp to be altered on the copied files. Now that I have left this "preserve Attributes" ticked all files have retained their original timestamps.
But maybe now the ownership is wrong.
As root, 'chown -R username.groupname
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-03-17 at 23:49 +1100, Basil Chupin wrote:
But maybe now the ownership is wrong.
As root, 'chown -R username.groupname
' will fix this hassle although from what I saw a little while back the ownership appeared to be OK but I will check again later today.
If you are root, the uid will be mantained. If you aren't, then mc will create the files as belonging to the user running mc. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF++f6tTMYHG2NR9URAnE0AJ9J2D07pTBBnDpWreOsai8R22SD8ACgijBQ WNq4LlOlud+RJ/lP5nvX8Js= =Mz5J -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2007-03-17 at 23:49 +1100, Basil Chupin wrote:
But maybe now the ownership is wrong.
As root, 'chown -R username.groupname
' will fix this hassle although from what I saw a little while back the ownership appeared to be OK but I will check again later today. If you are root, the uid will be mantained. If you aren't, then mc will create the files as belonging to the user running mc.
This appears to be so, but I think that the permissions require adjusting because not all files are accessible (I didn't pay attention to which ones they were). I used 'chmod -R u=rwx, g=rwx, o= ' to have all directories/files accessible by the new owner. Cheers. -- Never believe anything until it's been officially denied. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Basil Chupin wrote:
Cristian Rodriguez R. wrote:
Basil Chupin escribió:
One undesirable effect is that the timestamp of the original file is 'destroyed' and overwritten by the timestamp when the copying occurs. I want to be able to retain the original timestamp.
use the "-p" flag of the "cp" command.
Thanks for this.
I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying
. (Anyone know of a 'fox' for mc to put in this cp's -p option?) There is the 'noatime' parameter which can be added to the HD entries in fstab but will this solve my problem (if I add this 'noatime' parameter on all the computers)?
noatime will make your filesystem NOT to update the **access** time of your files. Ah, OK- it only works on the Accessed Date and not on the Modified(/Created) Date.
Thanks again.
Cheers.
I think krusader has a what your looking for -- Hans Krueger hkr@hanskruegerenterprizes.com mailto:hanskrueger@adelphia.net registered Linux user 289023 411024 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hans Krueger wrote:
Basil Chupin wrote:
Cristian Rodriguez R. wrote:
Basil Chupin escribió:
One undesirable effect is that the timestamp of the original file is 'destroyed' and overwritten by the timestamp when the copying occurs. I want to be able to retain the original timestamp.
use the "-p" flag of the "cp" command.
Thanks for this.
I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying
. (Anyone know of a 'fox' for mc to put in this cp's -p option?) There is the 'noatime' parameter which can be added to the HD entries in fstab but will this solve my problem (if I add this 'noatime' parameter on all the computers)?
noatime will make your filesystem NOT to update the **access** time of your files.
Ah, OK- it only works on the Accessed Date and not on the Modified(/Created) Date.
Thanks again.
Cheers.
I think krusader has a what your looking for
Thank you for this. I had a quick look at krusader and I think it has the potential to replace my favourite midnight commander, and it is certainly better than konqueror as far as I am concerned. Cheers. -- Never believe anything until it's been officially denied. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 17 Mar 2007, blchupin@tpg.com.au wrote:
I normally use mc (midnight commander) and unfortunately it doesn't have an option equivalent to -p so I now have to adapt myself to using a command line for copying
. (Anyone know of a 'fox' for mc to put in this cp's -p option?)
Yes, it does. Make sure "preserve Attributes" is checked. Charles -- panic("Unable to find empty mailbox for aha1542.\n"); linux-2.2.16/drivers/scsi/aha1542.c
participants (5)
-
Basil Chupin
-
Carlos E. R.
-
Charles philip Chan
-
Cristian Rodriguez R.
-
Hans Krueger