10-26-2011
Thank you ygemici
It gave me exactly the same output
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have the following rsync script that I use for syncing MySQL files from one server to another. I run the script at 20 minutes past every second hour in cron. I want to make sure that the script completes in it's entirety before it is set to kick off again. For example, when the script starts at... (3 Replies)
Discussion started by: sunsysadm2003
3 Replies
2. Shell Programming and Scripting
Hi all,
I am a newbie in unix and i want a script which should sync files between two servers like rsync.
The condition is that.
after rsync command is completed it should also list me how many files has been changed during the rsync execution.
if the rsync execution has failed , then... (2 Replies)
Discussion started by: abalakrishnan
2 Replies
3. Shell Programming and Scripting
Hello,
I wish to store the password in an rsync script so that when prompted it just enters the password.
I know I can set up passwordless logins, but I have never been able to do this on this particular server so I am resorting to storing the password in the script:
rsync -avz -e ssh... (4 Replies)
Discussion started by: stuaz
4 Replies
4. Shell Programming and Scripting
hello,
i need to modified my synch/back scripts....
i want that this script only syncro folders in destinationfolder.
f.e. when in destination are two folders
1) admin
2) users
but in SOURCE are three:
1) admin
2) users
3) antivirus
the script should only increnmential sync the... (0 Replies)
Discussion started by: onkeldave
0 Replies
5. Shell Programming and Scripting
#/bin/bash
#set -vx
DST_SRV=<destination_hostname>
MDATE=`date +%Y%m%d%H%M`
SRC_CONTENT="/home/prad/sourcecontent/"
DST_CONTENT="/tmp/prad/destinationfolder/"
DST_LOG="/tmp/prad/STATS"
CURRENT_LOG="/home/prad/STATS/rsync-current.log"
EMAIL="/home/prad/EMAIL/email.log"... (3 Replies)
Discussion started by: pnara2
3 Replies
6. UNIX for Advanced & Expert Users
Hi
I have a rsync that runs from a remote location to our central data store.
The sync generates a log locally not in the central location.
I would like to modify the rsync to add the following
The log, instead of filing locally it gets sent to a area on the central data store
once the syncs... (0 Replies)
Discussion started by: treds
0 Replies
7. Shell Programming and Scripting
Good day all,
I need your help in editing a rsync script that I am trying to write and using ksh shell.
I want to add multiple patterns --include and --exclude options with variable inputs called SID. I have created two files and named them N1 and N2 and created subfiles in each one
In N1... (1 Reply)
Discussion started by: Noura-83
1 Replies
8. Shell Programming and Scripting
Hi Folks,
I have a NAS running busybox with a ARM processor.
Several PC's backup full weekly and several daily incrementals to the NAS.
The NAS has two USB attached disks, which are swapped off site weekly.
The problem is the built in rsync only transfers at 2Mb/s to the external USB... (2 Replies)
Discussion started by: bigal.nz
2 Replies
9. Shell Programming and Scripting
Hello Friends,
I am trying to create an rsync file restore script. I will post want I have below and explain the problem I am having.
#!/bin/bash
#
# Partial Rsync File Restore Script
#
#
clear
echo
# Shell loads into /raid0/data/backup/bin/
cd .. # I cd to the backup... (1 Reply)
Discussion started by: jdavis_33
1 Replies
10. Shell Programming and Scripting
I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location
I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies
LEARN ABOUT SUNOS
sethostname
gethostname(3C) Standard C Library Functions gethostname(3C)
NAME
gethostname, sethostname - get or set name of current host
SYNOPSIS
#include <unistd.h>
int gethostname(char *name, int namelen);
int sethostname(char *name, int namelen);
DESCRIPTION
The gethostname() function returns the standard host name for the current processor, as previously set by sethostname(). The namelen argu-
ment specifies the size of the array pointed to by name. The returned name is null-terminated unless insufficient space is provided.
The sethostname() function sets the name of the host machine to be name, which has length namelen. This call is restricted to the superuser
and is normally used only when the system is bootstrapped.
Host names are limited to MAXHOSTNAMELEN characters, currently 256, defined in the <netdb.h> header.
RETURN VALUES
Upon successful completion, gethostname() and sethostname() return 0. Otherwise, they return -1 and set errno to indicate the error.
ERRORS
The gethostname() and sethostname() functions will fail if:
EFAULT The name or namelen argument gave an invalid address.
The sethostname() function will fail if:
EPERM The {PRIV_SYS_ADMIN} privilege was not asserted in the effective set of the calling process.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
sysinfo(2), uname(2), gethostid(3C), attributes(5), standards(5)
SunOS 5.10 22 Mar 2004 gethostname(3C)