07-29-2013
Sync script between two places
Hello Team,
We would like to copy or sync a couple a zpool and all dataset inside between two datacenters one time per day, the structure and space are the same in both sides.
We are consider to use rsync and a cron job.
We would like to know what type of ports we have to open in the firewall as well as services.
Could you please help us with the appropiate shell script that we have to configure in Solaris 11
Thanks in advance
Regards
Carlos
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all, first time here, but I figured you'd be the ones to ask...
I want to write a scrip which starts in shell ' $ ' and give it a command, then change to superuser and give it more commands. Then exit su, and give it more commands at '$' Is this possible?
Ex:
... (1 Reply)
Discussion started by: Jijalicious
1 Replies
2. Solaris
Hi all....I have a Sun Ultra2 that I want to use with my PC monitor. I have purchased an adapter that does not work and I was told I need to change my video card setting (if I can) to Separate Sync.....my Monitor product number ends in 1343......I am running SunOS 5.7 ......anyone have any ideas?
... (0 Replies)
Discussion started by: psantinello
0 Replies
3. Shell Programming and Scripting
Hi,
I am a newbie to shell scripting, and I have a file which quite large which I would like to delete lines at certain places. I want to search for a keyword which is recurring in the file. When matched I would like to delete the line. And when the file was so huge I thought I ought to learn... (3 Replies)
Discussion started by: mr_andrew
3 Replies
4. Shell Programming and Scripting
Hi all,
I am trying to create a simple password script but it seems not working well.
What I'm trying to do is to sync the yppasswd and smbpasswd. So I created this:
#!/bin/csh
echo ""
echo "Please enter old password: "
set OLDPASSWD = $<
echo "Please enter new password: "
set NEWPASSWD... (2 Replies)
Discussion started by: saiful
2 Replies
5. Shell Programming and Scripting
TO THE ALMIGHTY FORUM ,
though i have already posted the same question on hex to binary thread , i am posting here also for other beginners who may benefit from this thread...
I have a 32 bit binary containing a series of 1' and 0's , and i am stuck... (2 Replies)
Discussion started by: venu
2 Replies
6. Shell Programming and Scripting
i need to multiplay a number with 1.00.. so that the output should contain two decimal places at end..
for example...
236 * 1.00 = 236.00
245.8 * 1.00 = 245.80
but when i perform multiplication it shows output as.
236
245.8
can anyone help me to get the actual output of... (11 Replies)
Discussion started by: arunmanas
11 Replies
7. Shell Programming and Scripting
Hello all. This may seem like a dumb/easy question but right now I have a little script I made that uses rsync to sync a directory that has files in it that may or may not be complete files. I want to come up with a better solution for this. What it is is I have a directory lets say /incomplete... (4 Replies)
Discussion started by: linuxn00b
4 Replies
8. Shell Programming and Scripting
Hi,
I developed one shell script where it will sync the files using perforce,
#!/bin/bash
TERM=linux
export TERM
clear
echo ""
$PATH
echo ""
cd /u/userk/p4/p4_client/TES_DATE
echo ""
echo "Sync p4 "
p4 sync
echo "Executing for second time "
p4 -u userk -p p4net:161 -c... (8 Replies)
Discussion started by: asak
8 Replies
9. Programming
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies
10. Shell Programming and Scripting
I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies
LEARN ABOUT DEBIAN
file::sync
Sync(3pm) User Contributed Perl Documentation Sync(3pm)
NAME
File::Sync - Perl access to fsync() and sync() function calls
SYNOPSIS
use File::Sync qw(fsync sync);
sync();
fsync(*FILEHANDLE) or die "fsync: $!";
# and if fdatasync() is available on your system:
fdatasync($fh) or die "fdatasync: $!";
use File::Sync qw(fsync);
use FileHandle;
$fh = new FileHandle("> /tmp/foo")
or die "new FileHandle: $!";
...
$fh->fsync() or die "fsync: $!";
DESCRIPTION
The fsync() function takes a Perl file handle as its only argument, and passes its fileno() to the C function fsync(). It returns undef on
failure, or true on success. fdatasync() is identical in return value, but it calls C fdatasync() instead of fsync(), synchronizing only
the data in the file, not the metadata.
The fsync_fd() function is used internally by fsync(); it takes a file descriptor as its only argument.
The sync() function is identical to the C function sync().
This module does not export any methods by default, but fsync() is made available as a method of the FileHandle class. Note carefully that
as of 0.11, we no longer clobber anything in IO::Handle. You can replace any calls to IO::Handle::fsync() with IO::Handle::sync():
https://rt.cpan.org/Public/Bug/Display.html?id=50418
NOTES
Doing fsync() if the stdio buffers aren't flushed (with $| or the autoflush method) is probably pointless.
Calling sync() too often on a multi-user system is slightly antisocial.
AUTHOR
Carey Evans <c.evans@clear.net.nz>
SEE ALSO
perl(1), fsync(2), sync(2), perlvar(1)
perl v5.14.2 2011-11-19 Sync(3pm)