10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
3. UNIX for Advanced & Expert Users
rsync with --delete won't honor the delete if the source is something/*. I want the delete to work, but not to delete directories on the target that are peer to the intended directory. For example, using these source and target file structures:
Source on desktop:
~/
Money/
... (4 Replies)
Discussion started by: JavaMeister
4 Replies
4. Shell Programming and Scripting
Hello,
I need help in writing the shell script for below mentioned case.
There are 2 servers(server A, server B).
A cronjob syncs files between these 2 servers.
Existing script is copying files from A to B.
This is done using the command rsync.
However, the files are not deleted... (2 Replies)
Discussion started by: SravaniVedam11
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have some files in a local directory and perform an rsync command with the files in a remote directory, Now when I checked the files in the local and the remote directory, I found some strange filetypes such as this: .nfs0000000001d0c8e000002ff2 , .fuse_hidden000014da00000001 etc etc,... (3 Replies)
Discussion started by: ajayram
3 Replies
6. Shell Programming and Scripting
Hi Team,
I have to remove files which are more than 7 days in my target directory.
I have this script but using this i faced some problems like, removed library files of unix.
for abc in `find /xxx/abc/OutputFiles/xxxx_*.txt -type f -mtime +5|xargs ls 1`
do
echo "xxx files are:"$abc
... (1 Reply)
Discussion started by: harris
1 Replies
7. Shell Programming and Scripting
Hi
We want to delete a single file from the destiantion directory using rsync. Is it possible to do this ? or Do we have any alternate approaches in rsync( for ex applying some filters ..etc)
For ex:
-----------------------------------------------
Source (Folder)
... (3 Replies)
Discussion started by: MVEERA
3 Replies
8. Shell Programming and Scripting
Hi I have files that end with .txt.txt that i want to delete. But I also have files that end with .txt that I want to leave intact. How do I specifically delete files that end with .txt.txt in a folder.
thanks (5 Replies)
Discussion started by: kylle345
5 Replies
9. Shell Programming and Scripting
Hi ,
I need a script which basically deltes all files in folder a which are alreasy present in folder b
say folder a has files abc.txt
pqr .txt
and b has abc.txt
pqr.txt
rmr.txt
then file abc.txt and pqr.txt from a should be deleted (6 Replies)
Discussion started by: viv1
6 Replies
10. Shell Programming and Scripting
Hi!
Need your help. How can I delete the cache folder of multiple user home directories via automatically executed shell script on a Mac OS X Server?
Example:
The userdata are stored on a Xsan Volume like this:
/Volumes/Xsan/userdata/mike
/Volumes/Xsan/userdata/peter... (2 Replies)
Discussion started by: nipodrom
2 Replies
librsync(3) Library Functions Manual librsync(3)
NAME
librsync - library for delta compression of streams
SYNOPSYS
#include <stdio.h>
#include <stdlib.h>
#include <librsync.h>
cc ... -lrsync
DESCRIPTION
The librsync library implements network delta-compression of streams and files. The algorithm is similar to that used in the rsync(1) and
xdelta(2) programs, but specialized for transfer of arbitrary-length octet streams. Unlike most diff programs, librsync does not require
access to both of the files on the same machine, but rather only a short ``signature'' of the old file and the complete contents of the new
file.
The canonical use of librsync is in the rproxy(8) reference implementation of the rsync proposed extension to HTTP. It may be useful to
other programs which wish to do delta-compression in HTTP, or within their own protocol. There are HTTP-specific utility functions within
librsync, but they need not be used.
A number of tools such as rdiff(1) provide command-line and scriptable access to rsync functions.
SEE ALSO
rdiff(1)
rdiff and librsync Manual
http://rproxy.sourceforge.net/.
draft-pool-rsync
BUGS
The rsync protocol is still evolving. There may be bugs in the implementation. The interface may change in the future, but it is becoming
more stable.
Many routines will panic in case of error rather than returning an error code to the caller. Patches to fix this are welcome, but at the
current state of development aborting seems as useful as trusting to possibly-incomplete checking in the client.
AUTHOR
Martin Pool <mbp@samba.org>, with Andrew Tridgell <tridge@samba.org>.
rdiff development has been supported by Linuxcare, Inc and VA Linux Systems.
Martin Pool $Date: 2003/06/12 06:03:32 $ librsync(3)