Questions tagged [timestamp]

89 questions
57
votes
8 answers

Rsync : copying over timestamps only

Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command : rsync --dry-run -crvv A/ B/ then all files are marked "uptodate", whereas the command : rsync…
artella
  • 959
  • 2
  • 9
  • 6
45
votes
7 answers

How to determine the "age" of a linux system since installation?

I thought that I could easily check the timestamp of particular files. Then I realized that it wouldn't be so easy when I saw timestamps like 1991.
lisak
  • 637
  • 2
  • 7
  • 19
30
votes
2 answers

What switches can robocopy use to preserve file and directory times on the target?

After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying. Are there some switches to make robocopy keep the original files times?
vfclists
  • 1,562
  • 5
  • 20
  • 36
19
votes
2 answers

Why is scp not overwriting my destination file?

I'm trying to back up a file via the command scp /tmp/backup.tar.gz hostname:/home/user/backup.tar.gz When I run it, the scp progress bar shows up and it looks like its transferring the file, however when I log into the destination server to check…
Noli
  • 341
  • 1
  • 3
  • 8
10
votes
3 answers

Can nginx log time in ISO 8601 format, but include milliseconds?

We have Nginx as a reverse proxy in front of Tomcat. Both of them log access with ISO 8601 timestamps, but tomcat adds in milliseconds (which is part of the standard). So if Nginx gets a request and passes it onto Tomcat, the Nginx log might have…
SamBarham
  • 123
  • 1
  • 4
9
votes
1 answer

No response to some SYN packets when timestamps are enabled

I have a TCP server listening on a machine ("the server") running Ubuntu 12.04.3 (kernel 3.8.0-31-generic). It receives connections from 2 different client machines. Machine A is running Ubuntu 12.04.4 (3.11.0-17-generic) and machine B is running…
user133831
  • 191
  • 1
  • 3
9
votes
2 answers

How to allow multiple people to change mtime -timestamp of a file through sftp?

I have a directory that multiple users have access to. They change, upload, and delete files in the directory. They all belong to the same user group. The files in the directory have access rights of 660. The problem is that the users cannot set…
jous
  • 190
  • 1
  • 5
8
votes
2 answers

linux system time temporally jumps

I saw a strange system time changing behavior in some (hardware) servers: in /var/logs/syslog, the date time preceding each log message sometimes change to a random one and gets back to normal in the next message, like the following: Feb 22 2018…
Zhaohui Yang
  • 111
  • 5
8
votes
3 answers

How to see if/when a long file copy operation actually completed?

Having to move several very large files (VHDs) between two servers, I launched the file copy operation using Windows Explorer in a Remote Desktop session, and then closed the session without logging off, leaving the file copy to work; the next day,…
Massimo
  • 68,714
  • 56
  • 196
  • 319
7
votes
1 answer

Adding timestamps to supervisord logs

Is it possible to let supervisord add timestamps to the outputs in stdout_logfile and stderr_logfile? I couldn't find it anything about that in the documentation.
Norbert
  • 171
  • 1
  • 3
7
votes
6 answers

How to generate good serials for DNS zones with Puppet?

My tradition is to set all zone serials to the timestamp at modification. Now that Puppet is my new religion, I want to set serial timestamps when building zone files from exported resources. A somewhat trivialized example may look like this: file {…
Bittrance
  • 2,970
  • 2
  • 21
  • 27
6
votes
2 answers

Copy (sync) timestamps only of already copied files and folders in Windows

I have problem with lost timestamps ( creation date ) on files copied using Total Commander - only modification date remained. It's hundreds thousands of files and few TB of data, so I prefer not to copy them again. I managed to update only folders…
mike
  • 241
  • 2
  • 6
6
votes
2 answers

Block ICMP timestamp & timestamp reply with firewalld

OS: CentOS 7.0 Per the results of a security scan, it has been suggested that we block ICMP timestamp & timestamp reply messages using the firewall (CVE-1999-0524). I've used firewalld to set up some basic IP filtering for SSH as well as allowing…
5ELuqLbb85Hk
  • 63
  • 1
  • 1
  • 4
6
votes
1 answer

Need to make all the timestamps on local files match their corresponding ftp hosted file's timestamp

I screwed up and downloaded ~10GB worth of files from my offsite backup location (ftp server) without checking the 'preserve timestamp' option in the client. The PC with the local files is a netbook that uses a WiMax (4G cellular) connection for…
cdvonstinkpot
  • 61
  • 1
  • 3
5
votes
1 answer

How can i manipulate the find command to "find" the directories the "found" file is in?

So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file. find . -mtime -2 -exec rsync -av {} /destination/ \; I thought if i could bring over all the…
user768352
  • 53
  • 1
  • 1
  • 3
1
2 3 4 5 6