10-29-2013
Question on sync 2 folders with checking files' modify date
Hi Linux Community
I would like to ask about how to compare files in deferent server with date.
Those A and B servers has the same folder, I have write a sample script to "ls" both folders and "diff" them, and then "rsync" the missing files.
It was running well, both A and B are sync, until one day someone updated/modified a file on A, my sample script cannot detect it and havnt sync it to B.
Is there anyway to sync folders with file modify date between 2 servers?
Thanks.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to sync 2 remote folders so i setup with rsync which is working very fine. But, there comes another requirement to maintain multiple versions of files on destination (NOT to overwrite the destination file).
If there is difference between source file and destination file, it must... (0 Replies)
Discussion started by: prvnrk
0 Replies
2. UNIX for Advanced & Expert Users
Hi,
I need to sync 2 remote folders so i setup with rsync which is working very fine. But, there comes another requirement to maintain multiple versions of files on destination (NOT to overwrite the destination file).
If there is difference between source file and destination file, it must... (2 Replies)
Discussion started by: prvnrk
2 Replies
3. Shell Programming and Scripting
Hi All,
I have some folder that are named "FOLDERYYYYMM". I'm trying to piece together a .sh script that will look for the folder with the date. How can I get shell to see the date? (3 Replies)
Discussion started by: bbbngowc
3 Replies
4. Solaris
I have 2 sol 10 OS boxes in replication and there is a 6 minutes time difference in GMT zone. How I can sync? they are not on public network. (2 Replies)
Discussion started by: chandravadrevu
2 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I'm using Red Hat Linux and want to move some folders and files around but not change the modified date. Is this possible?
I know cp has a -p flag which seems to do what I want, but this is a large volume of data so copying and deleting would not be feasible. (13 Replies)
Discussion started by: Annorax
13 Replies
6. UNIX for Dummies Questions & Answers
Hello again,
A little while back I got help with creating a command to search all directories and sub directories for files from daystart of day x.
I'm wondering if there is a command that I've overlooked that may be able to search for / write folder names to an output file which ideally... (2 Replies)
Discussion started by: Aussiemick
2 Replies
7. Shell Programming and Scripting
Hi
I have some set of files for a particular date. What is the command that I need to put in for finding the total size of all the files for that particular date. The following command is fetching me the size of all individual files seperately
du -h *20101010*
16M file1.20101010
120K... (10 Replies)
Discussion started by: bobby1015
10 Replies
8. Solaris
We had a network problem a couple of days before that caused 1 interface to down and up. But today I have noticed that our date is wrong, our system have 4 servers and the other 3 are OK.
I used <date> command, the result is: Fri Jan 2 17:57:55 ICT 1970
I have tried set date to be the same as... (3 Replies)
Discussion started by: salvation3103
3 Replies
9. Shell Programming and Scripting
Hi,
So i know we use cp -r as a basic to copy folders/files.
I would like this BUT i would like to show the output of the files being copied.
With the amazing knowledge i have i have gone as far as this:
1) find source/* -exec cp -r {} target/ \;
2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
LEARN ABOUT MOJAVE
glclientwaitsync
GLCLIENTWAITSYNC(3G) OpenGL 3.3 GLCLIENTWAITSYNC(3G)
NAME
glClientWaitSync - block and wait for a sync object to become signaled
C SPECIFICATION
GLenum glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
PARAMETERS
sync
The sync object whose status to wait on.
flags
A bitfield controlling the command flushing behavior. flags may be GL_SYNC_FLUSH_COMMANDS_BIT.
timeout
The timeout, specified in nanoseconds, for which the implementation should wait for sync to become signaled.
DESCRIPTION
glClientWaitSync causes the client to block and wait for the sync object specified by sync to become signaled. If sync is signaled when
glClientWaitSync is called, glClientWaitSync returns immediately, otherwise it will block and wait for up to timeout nanoseconds for sync
to become signaled.
The return value is one of four status values:
o GL_ALREADY_SIGNALED indicates that sync was signaled at the time that glClientWaitSync was called.
o GL_TIMEOUT_EXPIRED indicates that at least timeout nanoseconds passed and sync did not become signaled.
o GL_CONDITION_SATISFIED indicates that sync was signaled before the timeout expired.
o GL_WAIT_FAILED indicates that an error occurred. Additionally, an OpenGL error will be generated.
NOTES
glClientWaitSync is available only if the GL version is 3.2 or greater.
ERRORS
GL_INVALID_VALUE is generated if sync is not the name of an existing sync object.
GL_INVALID_VALUE is generated if flags contains any unsupported flag.
SEE ALSO
glFenceSync(), glIsSync() glWaitSync()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
OpenGL 3.3 03/08/2011 GLCLIENTWAITSYNC(3G)