04-25-2013
Thanks for the info, how to use rsync on AIX ? Please let me know.
rsync will able to move transferred file to another directory ? how does it work? Please advise.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a task to move more than 35000 files every two hours, from the same directory to another directory based on a file that has the list of filenames
I tried the following logics
(1)
find . -name \*.dat > list
for i in `cat list` do mv $i test/ done
(2)
cat list|xargs -i mv "{}"... (7 Replies)
Discussion started by: bryan
7 Replies
2. UNIX for Dummies Questions & Answers
Hi all;
I'm having a problem when want to list a large number of files in current directory using find together with the prune option.
First i used this command but it list all the files including those in sub directories:
find . -name "*.dat" | xargs ls -ltr
Then i modified the command... (2 Replies)
Discussion started by: ashikin_8119
2 Replies
3. Shell Programming and Scripting
I have a large Filesystem on an AIX server and another one on a Red Hat box. I have syncd the two filesystems using rsysnc.
What Im looking for is a script that would compare to the two filesystems to make sure the bits match up and the number of files match up.
its around 2.8 million... (5 Replies)
Discussion started by: zippdawg2001
5 Replies
4. Shell Programming and Scripting
Hi,
i have more than 1000 data files(.txt) like this
first file format:
178.83 554.545
179.21 80.392
second file:
178.83 990.909
179.21 90.196
etc.
I want to combine them to the following format:
178.83,554.545,990.909,...
179.21,80.392,90.196,... (7 Replies)
Discussion started by: mr_monocyte
7 Replies
5. UNIX for Dummies Questions & Answers
I want to tar large number of files about 150k.
i am using the find command as below to create a file with all file names.
& then trying to use the tar -I command as below.
# find . -type f -name "gpi*" > include-file
# tar -I include-file -cvf newfile.tar
This i got from one of the posts... (2 Replies)
Discussion started by: crux123
2 Replies
6. Shell Programming and Scripting
Hellow i have a large number of files that i want to concatenate to one. these files start with the word 'VOICE_' for example
VOICE_0000000000
VOICE_1223o23u0
VOICE_934934927349
I use the following code:
cat /ODS/prepaid/CDR_FLOW/MEDIATION/VOICE_* >> /ODS/prepaid/CDR_FLOW/WORK/VOICE
... (10 Replies)
Discussion started by: chriss_58
10 Replies
7. UNIX for Dummies Questions & Answers
Hi. I need to delete a large number of files listed in a txt file. There are over 90000 files in the list. Some of the directory names and some of the file names do have spaces in them.
In the file, each line is a full path to a file:
/path/to/the files/file1
/path/to/some other/files/file 2... (4 Replies)
Discussion started by: inakajin
4 Replies
8. Shell Programming and Scripting
Hi All,
I have searched this forum for related posts but could not find one that fits mine. I have a shell script which removes all the XML tags including the text inside the tags from some 4 million XML files.
The shell script looks like this (MODIFIED):
find . "*.xml" -print | while read... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a large number of subdirectories (>200), and in each of these directories there is a file with a name like "opp1234.dat".
I'd like to know how I could change the names of these files to say "out.dat" in all these subdirectories in one go.
Thanks! (5 Replies)
Discussion started by: lost.identity
5 Replies
10. Shell Programming and Scripting
Hi All,
I am having a situation now to delete a huge number of temp files created during run times approx. 16700+ files. We have never imagined that we will get this this much big list of files during run time. It worked fine for lesser no of files in the list. But when list is huge we are... (7 Replies)
Discussion started by: mad man
7 Replies
LEARN ABOUT DEBIAN
lsyncd
LSYNCD(1) Lsyncd LSYNCD(1)
NAME
lsyncd - a daemon to continuously synchronize directory trees
SYNOPSIS
config file
*lsyncd* [OPTIONS] CONFIG-FILE
default rsync behaviour
*lsyncd* [OPTIONS] -rsync SOURCEDIR TARGET ...
default rync+ssh bevahiour (moves and deletes through ssh)
*lsyncd* [OPTIONS] -rsyncssh SOURCEDIR TARGETHOST TARGETDIR ...
default direct bevahiour (local file operations/rsync)
*lsyncd* [OPTIONS] -direct SOURCEDIR TARGETDIR ...
DESCRIPTION
Lsyncd(1) watches local directory trees through an event monitor interface (inotify, fsevents). It aggregates and combines events for a few
seconds and then spawns one or more processes to synchronize the changes. By default this is rsync(1). Lsyncd is thus a light-weight
asynchronous live mirror solution that is comparatively easy to install not requiring new filesystems or blockdevices and does not hamper
local filesystem performance.
Rsync+ssh is an advanced action configuration that uses a SSH(1) to act file and directory moves directly on the target instead of
retransmitting the move destination over the wire.
Fine-grained customization can be achieved through the CONFIG-FILE. Custom action configs can even be written from scratch in cascading
layers ranging from shell scripts to code written in the LUA(1) language. This way simplicity can be balanced with powerfulness. See the
online manual for details on the CONFIG-FILE http://code.google.com/p/lsyncd/wiki/Lsyncd20Manual
Note that under normal configuration Lsyncd will delete pre-existing files in the target directories that are not present in the respective
source directory.
OPTIONS
-delay SECS
Overrides the default delay times.
-help
Show a help message.
-insist
Continues startup even if a startup rsync cannot connect.
-log LEVEL
Controls which kind of events are logged. By default Lsyncd logs Normal and Error Messages. -log scarce will make Lsyncd log Error
messages only. -log all will log all debug messages.
-log Category
Turns on a specific debug message. E.g. -log Exec will log all processes as they are spawned.
-nodaemon
Lsyncd will not detach from the invoker and log as well to stdout/err.
-pidfile FILE
Lsyncd will write its process ID in FILE.
-runner FILE
Makes the Lsyncd core load the part of Lsyncd written in Lua from FILE.
-version
Writes version information and exits.
EXIT STATUS
0
Terminated on a TERM signal(7)
-1
Failure (syntax, unrecoverable error condition, internal failure)
SEE ALSO
Online Manual: http://code.google.com/p/lsyncd/wiki/Lsyncd2
VERSION
This man page is for lsyncd(1) version 2.0.5
AUTHOR
Axel Kittenberger, <axkibe@gmail.com> 2010-2011
COPYING
Copyright (C) 2010-2011 Axel Kittenberger. Free use of this software is granted under the terms of the GNU General Public License (GPL)
version 2, or any later version. Free redistrubition of this Documentation (/doc directory) is granted under the terms of the Creative
Commons 3.0 Attribution License (CC-3.0-BY).
Lsyncd 2.0.6 August 2011 LSYNCD(1)