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.
|
 |
10-07-2004, 11:47 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7
Rep:
|
linux time changes 1 hour -- after reboot
we are running a linux rsync server where keeping accurate dates and times is essential. today after rebooting the linux box, which has not occured in a few weeks the times of the files on our rsync shares is 1 hour retarded from before reboot? How can this happen? Is there any way to correct this? Is there any way of mass changing time stamps? Help.
|
|
|
10-07-2004, 12:11 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
You can set the date with the 'date' command or, use 'ntpdate clock.server.name', or 'netdate clock.server.name' (you'll need to find either a local or remote time server to get the correct time).
after you have the correct time, update your compter's clock with 'hwclock -w'
To change all the timestamps in question, try 'touch filename'
|
|
|
10-07-2004, 01:34 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7
Original Poster
Rep:
|
its not that my time is wrong or my hardware time is wrong I use ntp to sync the time and that has stayed constant, including hardware time. Touch looks like it could work if I can figure out a way to touch all files recursivley and start with that particular files time and not the systems at the time of execution. Any suggestions?
Last edited by mrconover; 10-07-2004 at 01:48 PM.
|
|
|
10-07-2004, 03:25 PM
|
#4
|
LQ Newbie
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7
Original Poster
Rep:
|
figured out a solution - wrote a bash script using a for loop and touch.
|
|
|
10-07-2004, 05:13 PM
|
#5
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
Good solution, but the key is to figure out why you're having the problem. Often, it can indicate something else wrong.
Unfortunately, I don't have any ideas of where to look.
Good luck!
--Shade
|
|
|
All times are GMT -5. The time now is 06:29 PM.
|
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
|
|