Here's a sample that I use to try things with rsync:
Producing:
Here's a brief explanation:
Quote:
Description of events:
Remove debris and re-create directories source and destination.
Create t1 - t5 in source.
Copy source to destination. This would be the situation where
everything is in sync.
Now we delete one file, and add a directory. This simulates
what often happens in a working directory -- it gets changed.
We decide that we want to keep the extra directory, but not to
have it processed by rsync, so we'll name it in an exclude.
To further simulate real-life, we'll back-date the files in
destination, so that rsync will think that it needs to update
(even though the content may not differ).
Visual trees are produced, as well as details of the objects.
The rsync is run in verbose mode, and the output suggests that
what we desired was obtained.
For the exclude, we need to specify a level down from the
source, because that is taken as the "root".
The directory "backup" holds all the original items that were
updated -- written over.
Hi all,
I installed Rsync on my Solaris 8 but when I ran it, it returns
ld.so.1: ./rsync: fatal: libpopt.so.0: open failed: No such file or directory
Killed
Please help. Thanks. (3 Replies)
Hello all,
Everyone has been awesome assisting with my rsync script... Now I want to clean it up. I think the best way for me to exclude many files might be to use a rsync exclude file.
So in my script I add
So now then, here is my .rsync/exclude...
So what is happening is the... (0 Replies)
Hi Frdz,
i am using rsync to transfer files from source to destination. but i have one criteria like i have to tranfer only links from source to destination.
in home/test/po folder i have
kiran/test1 -> /home/test/lo/fg
kiran/test2 -> /home/test/lo/fg2
like links are available.... (1 Reply)
HI,
I have upgraded nim master and client to TL8,SP6. Now when the mksysb backup ran from master,it is not excluding directories specified in /etc/exclude.rootvg in the client.Instead,mksysb is getting created for all the file systems in the rootvg. This problem only appeared after the TL... (3 Replies)
I have tried rsync command as shown below, (if directory doesn't not exist on destination, i needs to create directories and sub directories through rsync at the destination server.)
Note: Here /thaks/new/28/ directories doesn't exists on destination, How to create this on destination via rsync... (1 Reply)
i have issue with tar, let me explain
when i run below command it works perfectly as usual.
tar -cvf /tmp/temp.tar --exclude="exclusion expression" dir
my requirement is --exclude="exclusion expression" will come from another variable.
so when i execute below command:
tar -cvf... (2 Replies)
Loving the rsync command and beginning to write some scripts with it.
However I'm hung up on the --exclude function.
Script is tested and works great BEFORE I put the --omit in.
What am I doing wrong in my syntax?
rsync $OPTS /cis/cloverleaf/cis6.0/integrator/... (2 Replies)
Hi Folks,
I'm using rsync on Solaris 10 to backup a web server and need to exclude the cache and tmp directories. The man pages and google on rsync --exclude are ambiguous but I have tried--exclude=".*" and --exclude/remote_server/absolute_path with success only on the tmp files.
Rather than make... (2 Replies)
I have solaris 10 and my following exclude is not working:
tar -cvf /export/home/backups/$audit-Data-$useday.bkup.tar /Data --exclude=/Data/ssg/output
a /Data/ssg/output/ 0K
a /Data/ssg/output/ssg-ported508.txt 107142K
a /Data/ssg/output/ssg-ported747.txt 1801K
a... (4 Replies)
hi
I have a few folders and a few files , for example
Directory A B C D E
Files 1 2 3 4 5
I want B directory and "2" File that does not sync
But other directories and file sync
What is the solution ?
Is there a way to sync time is under one minute?
os centos 6.8
thanks... (5 Replies)