09-13-2017
I think the solution is rsync but I have no experience.
Can I use it on windows? should I install cygwin?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
Discussion started by: sollins
1 Replies
2. Shell Programming and Scripting
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies
3. Shell Programming and Scripting
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Discussion started by: natraj005
6 Replies
4. Shell Programming and Scripting
Hi experts,
I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script.
This is my requirement.
I have a folder AB under /users/myhome
I want to copy AB and its contents to /user/workspace.
Finally it should... (1 Reply)
Discussion started by: amvarma77
1 Replies
5. Shell Programming and Scripting
Hi all,
Hoping someone can help.
I'm looking to be able to search a particular folder path for folders that contain certain files / formats and then move the parent folder.
eg.
/foo/bar/folder1/file.exe
/foo/bar/folder2/file.exe
and then move the folder1/2 tp another folder. So if... (1 Reply)
Discussion started by: springs2
1 Replies
6. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
7. Shell Programming and Scripting
Hi All,
I have to requirement to write a shell script to move file from one folder (A) to another five folder (B,C,D,E,F) and destination folder should be blank. In not blank just skip.
This script will run as a scheduler every 2 minutes. It will check number of files in folder A and move 1 to... (9 Replies)
Discussion started by: peekuabc
9 Replies
8. Shell Programming and Scripting
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
Discussion started by: kannansoft1985
2 Replies
9. Shell Programming and Scripting
Hallo Team,
I have 2 .csv files file A has 47600 lines and file B has 67000 lines
FILEA
SD0o9rb01-1d320ddbcc8d220f572739ebed5f58d1-v300g00
SD8bt0101-a0810bfe0e3396060126ec51b30dac0a-v300g00
SD05sce01-cb056af347ed4651f29eb3c3e9addbd6-v300g00... (3 Replies)
Discussion started by: kekanap
3 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 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)