03-01-2012
If I remember rsync (and rdist but not sure anymore... long time) had a possibility on not overwiting if files were indentical...Now the question is more when you are syncing, it is more to update for all users (concerned) their passwd they have changed on the master server, then update modifications like new users and groups... Till here you should not have any issues.
Removing users is different for you find yourself having to decide what to do with users files all over the system(s) so it is not wise to remove them on the master before you have decided what to do and cleanup on all slaves then master.
What we used to do e.g. new user: create on master then create the accounts where needed in urgence so the user could work immediatly not having to wait for synch...
Have a script ready for synchro you can use anytime if needed and schedule a synchor when there is minimum activity
I would go with rsync...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a unix box which runs as a webserver and ftp server. I have a user account for a friend and while I trust him, I noticed that he can view directories above his own "web" folder which is his default directory.
I'm still trying to understand users/groups and privileges so bear with me if... (2 Replies)
Discussion started by: creyc
2 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
3. Shell Programming and Scripting
hi All,
cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'
Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies
4. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
5. Solaris
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
Discussion started by: wolfgang
16 Replies
6. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Discussion started by: jville
1 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
9. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT ULTRIX
newinv
newinv(1) General Commands Manual newinv(1)
Name
newinv - update distribution kit master inventory
Syntax
/usr/sys/dist/newinv mi-file input-path
Description
The command interactively maintains the master inventory files used for producing distributions in format. The program updates the master
inventory for a product when changes are made to the hierarchy of files which are to be packaged in the subsets which constitute the prod-
uct.
The product hierarchy is scanned to produce a list of component path names relative to input-path. The list of path names is processed
against the mi-file to produce a list of those files which have been removed from the product hierarchy and a list of those files which
have been added.
The user is then given an opportunity to intervene and direct the inventory maintenance by editing these lists. The user is placed in the
editor with each list available for editing. The editor used is the one specified by the EDITOR environment variable. If EDITOR is not
set, is used. When editing the list of files which have been removed from the product, the user is expected to verify that the removals
were intentional, and confirm the intent by removing the associated record from the file. When editing the list of files which have been
added to the product, the user is expected to provide flags and subset information for each new file, transforming the elements of the list
into master inventory records.
Both of these lists are merged with the records for the files which have not been changed to produce a new copy of the master inventory
file.
Arguments
mi-file The pathname of the master inventory file to be processed. If no master inventory file exists, you must create an empty one
before using the command.
input-path The name of the product hierarchy to be scanned for files belonging in the inventory. All files and directories found below
the input-path will be processed as belonging in the inventory.
Restrictions
The default text editor if not specified in $EDITOR is
Files in the product hierarchy cannot be excluded from the master inventory. Files can be blocked from being kitted in the final distribu-
tion kit by setting the subset field of the master inventory record to NOSHIP.
Examples
To update the master inventory file ULT400.mi from the hierarchy beginning at /var/kits/input, type:
newinv ULT400.mi /var/kits/input
Diagnostics
newinv: where is mi-file?
The mi-file specified on the command line cannot be found.
input-path: bad directory.
The input-path directory specified on the command line does not exist.
Files
Backup copy of master inventory
The list of files missing from the product.
The list of files new to the product.
Intermediate join file.
List of all files in the product.
See Also
kits(1), vi(1), stl_mi(5), environ(7), setld(8)
Guide to Preparing Software for Distribution on ULTRIX Systems
newinv(1)