You can make a script in order to get all the differences between Dir1 and Dir2 with the rsync parameter --dry-run, after that, you only need to do a copy of this files/folders from Dir1 to Dir3, something like that in csh:
This script, or something like that, will copy any file or folder from the Dir1 to Dir3 with the same structure.
BR
Hombreopaco
Last edited by hombreopaco; 12-15-2012 at 08:23 AM..
Reason: code tags
How do i collect Date & Time from Different Directories in a script
The script iam using for a single directory is :
ls -l | grep awk '{print $8}' (2 Replies)
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
I want to compare "N" (around 2000+) number of huge files located in a directory A against "N" files located in a different directory using Bash scripting.
Please help me with any scripts available.
Thanks. (2 Replies)
Hello there, I'm a total noob to shell scripting. :)
What I want to do is compare the contents of Folder A and Folder B, and copy any files in Folder A that do not exist in Folder B over to Folder B.
I have gotten so far as:
diff -rq folderA folderB
which returns the names of the files,... (3 Replies)
Hi,
I am using solaris OS 10 and Bash shell.I need a script which will compare the two directories and produces the output.
Step 1: In detail say suppoose I have machine one and have a directory dir1. Script should iterate through the directories and subdirectories inside and produce the output... (10 Replies)
Hi,
I am writing a script to copy certain file name in txt file .
It is working fine if I provide a single directory name (for example "/eos/uscms/store/user/pooja04//analysis2012/525/data/doubleele/2012/datav1/" ) where those specific files are present ending with *root .
But I want to modify... (14 Replies)
Hi All,
I have written a shell script that creates a backup of my MySQL database. The script performs the following functions:
Creates a Backup of the MySQL database
Compresses the Backup
Copies the Backup to a Remote Server
Send an E-Mail displaying the size of the Backup
Removes any... (6 Replies)
I have directory path in which there are several sub directories. In all these sub dir there will be one env.cnf file. I want to copy this env.cnf file from
each sub dir's and place them in destination path by creating same filename as sub dir_env.cnf.
After copying env.cnf files from source... (4 Replies)
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)
Hey
im working on script that can compare 2 directory and check difference, then copy difference files in third diretory.
here is the story:
in folder one we have 12 subfolder and in each of them near 500 images hosted.
01 02 03 04 05 06 07 08 09 10 11 12
in folder 2 we have same subfolder... (2 Replies)
Discussion started by: nimafire
2 Replies
LEARN ABOUT SUNOS
mbk_cata_lib
MBK_CATA_LIB(1) MBK ENVIRONMENT VARIABLES MBK_CATA_LIB(1)NAME
MBK_CATA_LIB - define the mbk catalog directory
SYNOPSYS
c-shell running
setenv MBK_CATA_LIB path1:path2:path3:...:...:pathn
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
DESCRIPTION
MBK_CATA_LIB sets the directories that are to be searched thru for reading. When instanciating a cell for example, the first cell that is
found with the given name is loaded in memory.
The seaching mecanism first look in MBK_WORK_LIB(1), and then, in path1 thru pathn, in the order defined by the user when typing the setenv
command. This directories are considered to be, from a mbk point of view, read only.
The pathi arguments must be actually accessible pathes on your host machine.
ERRORS
"mbk_fopen : can't open file 'unix_path/file.xx' thru directories : path1, ..., pathn"
This occurs when either the unix path is irrelevent, or when the file doesn't exist. This can also be a unix right problem if the
file is not accessible for reading, but this is seldom.
EXAMPLE
setenv MBK_CATA_LIB ~fred/crechan/uom:/labo/sclib
DIAGNOSTICS
Only the first path may be given with a '~', since the shell extents it only when seen first.
SEE ALSO mbk(3), genlib(1), MBK_WORK_LIB(1).
BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 MBK_CATA_LIB(1)