HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- using rdist to update directories with different n...
Operating System - HP-UX
1836786
Members
2165
Online
110110
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 05:56 AM
04-29-2003 05:56 AM
using rdist to update directories with different names
Greetings,
This is my first forum question. I want to update files on a different machine with different directory names than the source using rdist. My source is mach1:/nfs/dir1 and I want to update files on mach2:/nfs/dir1_sby
Is this possible? I realize their is an option to append the full path name but this dosen't work in my case. I want to tell it the name of the destination. Hope this makes sense??
This is my first forum question. I want to update files on a different machine with different directory names than the source using rdist. My source is mach1:/nfs/dir1 and I want to update files on mach2:/nfs/dir1_sby
Is this possible? I realize their is an option to append the full path name but this dosen't work in my case. I want to tell it the name of the destination. Hope this makes sense??
First time questioner
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2003 08:23 AM
04-29-2003 08:23 AM
Re: using rdist to update directories with different names
We always use a file for the contents, and the destination
we put this in cron rdist -f distfile > /dev/null
this is our distfile
HOSTS = ( root@XXX.XXX.XXX.X )
FILES = ( /d001/TEST/app/group/program/data )
Time=(`/usr/bin/date +%X`)
Month=(`/usr/bin/date +%m`)
Day=(`/usr/bin/date +%d`)
Year=(`/usr/bin/date +%Y`)
Directory = ( /d001/recovery/INST_${Year}${Month}${Day}_${Time}_HOMEDATA )
${FILES} -> ${HOSTS}
install ${Directory};
That allows us to rdist nightly for our own backup to a second server. That we can get an identical structure of our application.
Hope that helps
Tim
we put this in cron rdist -f distfile > /dev/null
this is our distfile
HOSTS = ( root@XXX.XXX.XXX.X )
FILES = ( /d001/TEST/app/group/program/data )
Time=(`/usr/bin/date +%X`)
Month=(`/usr/bin/date +%m`)
Day=(`/usr/bin/date +%d`)
Year=(`/usr/bin/date +%Y`)
Directory = ( /d001/recovery/INST_${Year}${Month}${Day}_${Time}_HOMEDATA )
${FILES} -> ${HOSTS}
install ${Directory};
That allows us to rdist nightly for our own backup to a second server. That we can get an identical structure of our application.
Hope that helps
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 11:36 AM
05-14-2003 11:36 AM
Re: using rdist to update directories with different names
I've built a script that might be more complicated than what you want. It will make a copy of a link, file or directory and prefix the name with .pri. e.g. /etc/jimbob.pri.passwd. It then uses rdist to clone the file to additional servers.
I'll attach the script. It uses a configuration file. Here's some sample entries for the configuration file.
rdist.conf file contents...
=====================================================
# src=Source Host
# Type = Type of rdist
# file
# dir
# link
# Base = Base directory where file or subdirectory is located
# File/Directory = Name of file or directory to be distributed
# owner: owner of file or directory .... Used for mkdirs of directories only
# For information only for files.
# Perm = Permission of of file or directory ... Used after mkdirs of interim directories
# For information only for files.
# Targets = Hostnames of hosts that are to receive copies
#
# Src Type Base File/Directory owner Perm Targets
#file /etc/passwd -
jimbob file /etc passwd root:sys 0444 server1 server2
sneezy file /etc passwd root:sys 0644 server1 server2
jimbob dir /var/sam lp root:sys 0755 server1
jimbob link /etc termcap root:sys 1755 server1
============================================
There might be some additional scripts used by the utility. Let me know if you want more...
Jack
I'll attach the script. It uses a configuration file. Here's some sample entries for the configuration file.
rdist.conf file contents...
=====================================================
# src=Source Host
# Type = Type of rdist
# file
# dir
# link
# Base = Base directory where file or subdirectory is located
# File/Directory = Name of file or directory to be distributed
# owner: owner of file or directory .... Used for mkdirs of directories only
# For information only for files.
# Perm = Permission of of file or directory ... Used after mkdirs of interim directories
# For information only for files.
# Targets = Hostnames of hosts that are to receive copies
#
# Src Type Base File/Directory owner Perm Targets
#file /etc/passwd -
jimbob file /etc passwd root:sys 0444 server1 server2
sneezy file /etc passwd root:sys 0644 server1 server2
jimbob dir /var/sam lp root:sys 0755 server1
jimbob link /etc termcap root:sys 1755 server1
============================================
There might be some additional scripts used by the utility. Let me know if you want more...
Jack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2003 11:38 AM
05-14-2003 11:38 AM
Re: using rdist to update directories with different names
Here's a copy of the check_rdist.conf.sh script...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP