Programming :: File Replication Routine?
Mar 1, 2011
I have been scripting Inotify to work as file replication.It works very well for casual use when editing or uploading files. But I have to make sure it stands up against a "tar bomb" when we install a new package. EG: tar -xzf really_big_php_project.tar.gz
Code:
#!/bin/sh
# get the current path
[code]....
View 1 Replies
ADVERTISEMENT
Oct 23, 2010
I am running shell command through C program using system() routine.
I am executing "opcontrol --status" an executable using the this routine and I get the following error. access: unix error (2) No such file or directory
But when I give the complete path to the executable it runs perfectly.
The executable is installed in "/usr/local/bin/" And the path variable has this path.
View 1 Replies
View Related
Feb 10, 2011
I am using Debian as mail server and proxy server. I need to configure one backup server for the same. Mainly I need to replicate/sync the files on both machines. So I can avoid the failure time.
View 3 Replies
View Related
Feb 2, 2010
i would like to know how to setup Samba file replication between two Opensuse 10.3 servers,
View 7 Replies
View Related
Jun 5, 2010
I am IT Manager. Currently I am responsible for a mostly IBM shop, running a mix of AIX, OS/400. VMware, and Windows.
My P-series running AIX and Oracle and my AS/400 both back up to tape drives daily.
But my VMware system is not being backed up, the virtual machines are, but my tape drive just broke down.
I just ordered a server grade machine with an i5 CPU, running 3 2TB SATA drives in RAID5, this is going to be my new backup server.
I am hoping I can put Linux on it, and some sort of open source file replications, real time backup software that will back up my Windows servers, and my Windows desktops in real time.... any sort of animal exist?
View 5 Replies
View Related
Nov 22, 2009
this idea to me right now seems stupid and impractical so I'm also looking for solutions outside of this one. I'm creating a set of highly available servers. They currently utilize pacemaker to manage a shared IP address, apache management, mysql management and also drbd handling. They currently replicate, properly failover and run fine. However, this is a shared web hosting setup and everytime a new user is added to the system a username and password is created and the httpd.conf file is updated for their site. I need a way to replicate those changes to the other server. For httpd.conf I'm pretty sure I can just stick it on the apache drbd resource and create a symbolic link. However, for the passwd and shadow files that is not a realistic solution.
View 1 Replies
View Related
Feb 8, 2010
I`m still new, curious and overwhelmed with the Rdhat 4 as i`m used to be more on other platform. Anybody can advise the routine maintenance that need to be done on the Redhat 4 server?
View 2 Replies
View Related
Jul 21, 2010
is there a way to turn off routine drive check?in running Ubuntu 8.04
View 1 Replies
View Related
Dec 16, 2010
Yesterday I installed (K)ubuntu via bootable DVD (And I use also Vista).I only could install it with all the options deactivated.After that it told me to remove the DVD and restart.After that I see only a black screen with a white cursor and nothing happens.When I choose Recovery-Mode i get this message and nothing happens:
My system:
CPU
AMD Athlon 64 X2 6000+ 60 �C
Windsor 90nm Technologie
View 2 Replies
View Related
Jul 5, 2011
I recently installed FC13 on my Acer 2920 laptop. During normal routine work, the system shutdown unexpectedly without giving any message. This problem continues every time I boot fecdora.
View 2 Replies
View Related
Jan 13, 2010
My laptop keeps freezing after the routine disk check completes, along with a screen of jiggly colours. I also booted into safe mode and ran the disk check from there with the same result.
View 7 Replies
View Related
Apr 13, 2010
I'm running RHEL 5.5 on two workstation for test DRBD and I get something that sound strange ...[URL] Quote:Protocol C. Synchronous replication protocol. Local write operations on the primary node are considered completed only after both the local and the remote disk write have been confirmed. As a result, loss of a single node is guaranteed not to lead to any data loss. Data loss is, of course, inevitable even with this replication protocol if both nodes (or their storage subsystems) are irreversibly destroyed at the same time. By far, the most commonly used replication protocol in DRBD setups is protocol C.
View 15 Replies
View Related
Jan 18, 2011
I have a fedora 8 server and I just wanted to install fedora directory server I got it install and running, but I'm unable to check the replication and also it seems that I has no database when I user fedora-console-idm.[URL].. Also the same thing happens at the web tool. Any ideas? I think there is no db set, but I have no idea how to do this on fedora-ds. I'm new to it.
View 1 Replies
View Related
May 6, 2010
How to directory replication between 2 or more servers?
View 1 Replies
View Related
Feb 24, 2010
i do wish to read study learn from linux world. sites to refer always for command, practice,tutorials etc.say like replication data os level from 1 pc to other pc,without using any outside linux software, only os level, linux to linux, linux to windows/macchannel bonding, using 2 network ethernet card, double the speed of network card and failover netowkr card alsosyncronize data 1pc to 2pc
View 1 Replies
View Related
Apr 5, 2010
If I have 2 MySQL server and I want to replicate their database to only 1 server, is it possible? I cannot afford to have master-to-master only because I still need to replicate one more machine but I do not have anymore more machine for replication so I'm thinking if these 2 MySQL server can be replicate to only 1 machine. If this is not possible, I guess I've no choice but to have two mysql daemon on that machine
View 5 Replies
View Related
Jun 29, 2009
I have been using OpenLDAP 2.4 with OpenSuse 11 without any issues but I now want to configure replication and can't see how it's done . The OpenLDAP 2.4 admin guide refers to the slapd.conf configuration file but this is not used by YaST.
View 4 Replies
View Related
Jul 27, 2010
I'm thinking of producing a website for a project at uni which would resemble the brainstorm website [URL]. I plan to write it in PHP with a mysql database. How I could start to plan such a project, suggest any PHP frameworks which may make the job easier, any code already available to start me off etc??
View 1 Replies
View Related
Sep 12, 2010
i had configured a MySQl Replication Server with 2 DB Servers.Now we are planning to implement a failover Scenario.If Master fails The slave should act as a Master and we have a addition server.It will be going to act as slve.i had mentioned the points below..
Replication
(Master Server)----->----(Slave Server)-----------(Additional Server)
DBS 1 DBS 2 DBS 3
1.Replication is made between Master (DBS 1) and Slave (DBS 2) (successfully done)
2.If Master (DBS 1) failed Slave (DBS 2) should act as a Master and Additional Server (DBS 3) needs to be Slave
3.Whenever Orginal Master (DBS 1) became online the current Master ie ..Slave (DBS 2) should go back to Slave position and all lost data will be replicated to Master DBS 1.
View 5 Replies
View Related
Nov 29, 2010
I configured a master DNS server 192.168.2.10 working OK. After that I configure a DNS Slave Server (92.168.2.11)the initial replication worked fine. This is test environment for my certification. I see how the zones from my master are transferred
zones in Master
training.com.db
transferred zone to my slave when I started named service
sec.training.com.db
That's Ok but I added some IPs to resolve to my master zone
webserver IN A 192.168.2.30
fileserver IN A 192.168.2.31
I restart/reload named on master and after that I go to slave and restart/reload but zones wuth the new values are not replicated. How long does it take for slave to take the changes from master? how is the procedure manual or automatic? I see If I go to slave and delete sec.training.com and restart named the zone with the changes is transferred but that is very manual... I am including my DNS Configuration so you can take a look.
View 4 Replies
View Related
Sep 27, 2010
Might this is silly question but I am not much familiar to database.I am doing master slave Mysql replication for load balancing. On master server different database has different user privileges. I create backup using mysqldump command and restore on slave server instead of using load data from master; command.When i replicate database from master to slave will i require to set user privileges same as master ?One more question: How to lock all database in mysql?
View 2 Replies
View Related
May 14, 2011
I want to copy a file to all RHQ-Agents through out RHQ-Console.
View 1 Replies
View Related
Aug 8, 2011
I have two computers (one tower, one laptop). On both the computers, I have apache & PHP & mysql running, so i can program/script anywhere I like. With a simple sync'ing program, the PHP scripts are synced between the PC's, thought the databases arent. Therefor I'm looking for a method to sync (replicate) the databases between the PC's. thought after setting up some configuration, i'm stuck... now with how to, but what to
Option 1) Multi-master replication between the PC and the laptop. With this setup, the database can ONLY sync once both the devices are turned on. Also it can only sync if they are turned on on my LAN, since they do not have an external static IP address. if I turn on both PC's on my LAN, with static IP's (from the DHCP server), this option will work. Thought, I basically never have both pc's turned on in my own home... cuz i can use only one at the time anyway.So I was thinking of another setup
Option 2) Multi-master replication with: online Server, PC and Laptop. The server basically contains the most up to date database. for example, the laptop updates the server and the server can update the PC later, once the PC is turned on. Also the other way around, the PC can update the server which can than update the Laptop.
There is, if i'm correct, only one problem: the only multi master replications setups I found, use a circulair setup... (1 updates 2, 2 updates 3, 3 updates 1) What I need is to have the PC update the server, but ALSO have the server update the PC (same for the laptop)
than there is another (little) problem: the PC and laptop cannot be reached from behind the modem, nor do they have a static IP. My question: Is it possible to sync the server with the laptop (that has no static IP), the laptop with the server (that has a static IP), and the same for the PC
PC <====> Server <====> Laptop
View 1 Replies
View Related
Sep 15, 2010
I had Configured a MySQL Master-Slave replication.It seems that the binary logs steals so much space of My storage.
i.)My Master
show master status;
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000144 | 475823 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
ii.)My Slave.
mysql> SHOW SLAVE STATUSG;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.277.55.141
[code]....
If i remove all binary files up tp mysql-bin.000144 using "PURGE",will it affect my existing database/any data loss.
View 14 Replies
View Related
Jun 21, 2010
I am looking into setting up replication in a production environment but currently this is on two test machines. I am following the documentation at [URL] but I am unable to get past "16.1.1.10 Setting the Master Configuration on the Slave". When I do the CHANGE MASTER TO I am getting a syntax error for some reason. What am I doing wrong? These servers run "CentOS release 5.5 (Final)" and "MySQL 5.0.77-log Source distribution" installed via yum. The only changes from default are that I created a single database on the master before doing the table lock and dump, then everything else has been done exactly to what the documentation states, but is still failing.
The option skip-networking is not in the config file on either server and neither one runs SELinux or any firewall.
mysql> CHANGE MASTER TO
-> MASTER_HOST='192.168.1.220'
-> MASTER_USER='repl'
-> MASTER_PASSWORD='removed'
[Code]....
View 3 Replies
View Related
Jun 7, 2010
I have made a backupscript that simply copy files to an external harddisk with the command cp -a.
Before the backup script start I'll mount the external harddisk with mount /dev/sda1 /mnt/USB/backup. And after the script the external harddisk will be unmounted.
This all works great. But when the user is forgotten his external device the script is written the files to the system partition and that is a big problem.I've seen a lot of backup scripts who has the same problem.
Can I build in some routine that is the mounting is not working that the script is stopping?
Or are there some better ideas to avoid this?
View 6 Replies
View Related
Mar 17, 2010
When doing a routine update to GRUB, it asked me what drive/partition I want it installed on. When I clicked enter to pass the OK message, the update manager froze momentarily and then it passed the selection page, saying "Warning: Installing GRUB to a partition other than the MBR is not recommended"
How can I fix this?
View 1 Replies
View Related
Jun 7, 2010
I have successfully installed Openldap and am able to authenticate to it, but I can not get the replication server operating correctly. I have followed all of the steps in doing so from this guide, [URL], but there are a few things i don't understand. when creating the consumer_sync.ldif file on the consumer server it says to replace ldap01.example.com to your server's hostname.
would this be the provider or consumer? My porvider is ldap@tech.local and my consumer is ldap-backup@tech.local.... so what one are they refurring to with the ldap01? And is there a way to push, or sync the two server manually? How do I know if they are backing up properly? How do I test?
View 1 Replies
View Related
Oct 15, 2010
My MySQL replication slave failed,while reading a large size table from master.Thhe information from error.logError 'Unknown table engine 'InnoDB'' on query. Default database: 'test'. Query: I am sure that table is a Big size table..
View 11 Replies
View Related
May 13, 2011
I'm setting up a Master and Slave OpenLDAP (ver. 2.4.25) use Replication method following {URL]. When I used slapdcat (slapdcat -l master_dump.ldif), I got a message:
root@ldap:/usr/local/openldap/sbin# ./slapcat -l master_dump.ldif
/usr/local/openldap/etc/openldap/slapd.conf: line 89: <replogfile> keyword is obsolete (ignored)
/usr/local/openldap/etc/openldap/slapd.conf: line 91: <replica> keyword is obsolete (ignored)
bdb_db_open: warning - no DB_CONFIG file found in directory /usr/local/openldap/var/openldap-data: (2).
Expect poor performance for suffix "dc=abc,dc=com".
bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
My Master slapd.conf is:
# Require 112-bit (3DES or better) encryption for updates
# Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64
# Sample access control policy:
# Root DSE: allow anyone to read it
# Subschema (sub)entry DSE: allow anyone to read it
# Other DSEs:
# Allow self write access
# Allow authenticated users read access
# Allow anonymous users to authenticate
# Directives needed to implement policy:
# access to dn.base="" by * read
# access to dn.base="cn=Subschema" by * read
# access to *
# by self write
# by users read
# by anonymous auth
# if no access controls are present, the default policy allows anyone and everyone to read anything but restricts updates to rootdn. (e.g., "access to * by * read") .....
My Slave slapd.conf is similar configuration to the Master Server...
View 5 Replies
View Related