General :: Rsync Across Many Machines?

May 26, 2010

i have a cheap-arse employer who doesn't provide any data backup for us. so i've setup my own very simple server with ubuntu 10.04 (no raid). from my linux desktop i want to backup to my file server. from my file server i configured samba to allow me to access my data from the many Windows PCs in the place. I also have a USB drive for when i go home or to another building.

most of my work happens on my linux desktop. so i use rsync to 'backup' from there to the file server. can i use rsync to keep my usb drive also sync'ed? in the same command?

when i access files on my file server from a Windows PC via samba, and change something, will rsync pick up that change on the server, and migrate the changes back to my linux desktop?

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:

[Code]....

This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Ubuntu :: Can't Rsync Gmail / Run Rsync --recursive --times --perms --links --delete?

Jan 7, 2011

When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/

where Documents/exclude.txt is

- /Downloads/
- /Desktop/books/

the files in those directories are still copied onto my USB.

And...

I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.

View 9 Replies View Related

Server :: Rsync Execution - With Crontab - Have Given Full Path To Rsync Too

Apr 12, 2011

I have a tiny shell script to rsync files between two servers and remove the source files.

This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.

But the same script doesn't work, when I try to automate it through crontab.

I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.

As I mentioned earlier, manual execution works like charm!

When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.

View 6 Replies View Related

Software :: Run Rsync To Download Files From A Server Without Rsync Daemon?

Sep 18, 2009

I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.

I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?

The command I used is rsync --partial --progress -r source destination

View 1 Replies View Related

Server :: Rsync Can Not Rsync Files With Include Filter

Jul 21, 2010

use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.

rsync configure file,below...

View 2 Replies View Related

Server :: Rsync Fails In Cron - Ssh Key - For Rsync?

Dec 8, 2010

I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.

I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.

Code:

Here is the rsync command embedding in the .sh script.

Code:

Here is the cron entry:

Code:

View 6 Replies View Related

General :: Installation In 50 Or More Machines?

Jan 4, 2009

if I need to install Linux o/s in 50 or 100 machines, how do I do it ? (lets imagine that all the machines are identical)

Is it possible to install in one of the machines and just clone in all of the other machines (without actual installation). If so , how do i do it ??

View 5 Replies View Related

General :: What Are The Limitations Of Virtual Machines

Jan 4, 2011

I'm considering setting up a virtual machine running Windows, with Ubuntu 10.10 as the host OS, for those cases where I have a Windows-only program.I understand that using a VM will lose some performance, but are there other limitations to what the OS in a virtual machine can do compared to "running on bare metal"?

For example:

Can a VM play games, like Dragon Age Origins or Civilization V? (Possibly with poorer framerates and/or lower resolution, but does it play at all?) Can a VM rip DVD/Blue-ray using AnyDVD or similar Windows program? Can a VM handle new hardware that requires dedicated drivers, but the drivers are only available for the OS running inside the VM? (Ex. graphics card, digital camera, card reader for smart card authentication.) Is it possible to say anything about "general limitations" of VMs, or is this wholly dependent on the specific VM?

View 3 Replies View Related

General :: Running SSH On Two Separate Machines?

Mar 1, 2011

I have the following network setup.

* A static IP from my ISP
* A router/modem in my home
* Two machines: MachineA and MachineB connected to the router

Currently, the router is setup so that ports 80, 21, and 22 all forward to ports 80, 21, and 22 on Machine A.

However, I would like to be able to SSH into Machine B as well. What is the best way to accomplish this? I figured I would setup Machine B's SSH server to listed on a random port like 2995. So then I would configure my router so that incoming requests from port 2995 are forwarded to port 2995 on Machine B.

View 2 Replies View Related

General :: Display On Two Machines At Same Time

Mar 18, 2011

I'd like to know if it's possible to set the DISPLAY environment variable in order to display on two machines, the local and the remote, at the same time.

View 2 Replies View Related

General :: Bootable USB Doesn't Work On Every Machines

Dec 17, 2010

I used unetbootin to make a bootable USB key (a BT4 persistant live cd)

But it wors only on a few machines. (only 1 out of 6 i tried) Most of the time boot sequence get stuck on a blinking prompt cursor.

Ex:

Attempting Boot From Floppy Drive (A:)
Attempting Boot From USB Device
_ <-- stuck...

Then boot on HDD

Is it do to the usb key or machines that do not load mbr the same way?

Edit: the stick is formated with MBR have 2 partitions. The first is FAT32 and active, second is ext3

PCs i have tested can boot on USB (at leat you can select a USB device for Boot)

View 2 Replies View Related

General :: Copying A File To Multiple Machines?

Mar 7, 2011

Is it possible to copy a file on multiple remote machines through scp in one command?

View 3 Replies View Related

General :: Apache Clustering On Virtual Machines?

Feb 5, 2010

I am Working On Citrix Xen Server.I have Installed two Virtual Machines(Centos 5.3).Now Apache is Configured and its running on the First VM.Can I Set up a Apache Clustering On those VM?.My Aim is "If Apache On the First VM Down,then Apache on Second VM Should Automatically Start".Is there Any Tutorial to Setup Apache Clustering On Virtual machines.

View 4 Replies View Related

General :: Boot From A Virtual Machines Disk?

Mar 22, 2010

I've installed a virtual machine on my computer. and I want to boot from its hard disk(which is on my /home/xen/domains/test1/disk.img). what I need is create a grub entry for this.

View 11 Replies View Related

General :: Share DVD Reader Between Multiple Machines?

Apr 21, 2011

Two machines connected via LAN Older machine is running RedHat 3 Kernel 2.4.21-50.ELsmp on i686 Newer machine is at a current level of SUSE Linux. Newer machine has a DVD drive. Here's the question. Is it possible to, remotely, mount the DVD device to the older machine? If so, can it be used to install software packages?

View 1 Replies View Related

General :: Remotely Shut-down XP Machines From A Server?

Oct 27, 2010

suddenly ,I get a project to shutdown all xp's by a Linux server(RHEL5) using a single command.by net command i did that.but in this case i have to specify all the ip addresses manually .Is there any way that Linux server obtain the ip addresses automatically on a network and then shut down all the pc's

View 2 Replies View Related

General :: Ruptime Not Showing All Machines In Network

Jun 3, 2010

I usually monitor machines in the network via ruptime. But one machine (lambda) acts very odd. It never shows up in the output of ruptime, unless ruptime is run from a particular client (delta). For example, say I am logged in lambda. This is what the output of ruptime and few other commands are:

[Code]...

Linux delta.grp.vpncc.org 2.6.18-53.1.21.el5 #1 SMP Tue May 20 09:35:07 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux Only difference between delta and other machines is the fact that delta is the file server that hosts the nfs directories shared in all the machines. All the machines are in the same subnet. All of them run either RHEL4, RHEL5 or CentOS5. lambda runs RHEL 5.4, delta runs CentOS 5.2. I tried restrting rwhod daemon on lambda, but no change. why lambda is playing this hide and seek with ruptime?

View 6 Replies View Related

General :: SNMP For Managing Machines Remotely?

May 24, 2011

I just narrowly passed another exam on UNIX Academy. Their DVDs are incredible. While I made some mistakes here and there.I was really stumbled upon a question that was formulated something like "SNMP for managing Linux machines remotely".I can't remember the exact definition. I'm not sure what it was about.I was under impression that SNMP it is a carrier protocol for commands like "ping" and "traceroute". I was trying to read about it online but it is way too broad and technical, they're loosing me on very first page. I suspect there's some kind of product or technology that uses SNMP in some way to handle Linux, I'm not sure.

View 2 Replies View Related

General :: Install Software On Low Memory Debian Machines?

Sep 11, 2010

I have a server that runs a minimal instalation of debian 5.0. The server has only 128mb of ram. I am trying to install virtualmin but I keep getting the message: spinner: fork: Cannot allocate memory

I have read that this is because the system is out of memory. I am wondering if there still is a way to get this installed om my machine. After the installation is complete I have methods of reducing the amount of memory the application usses.

View 2 Replies View Related

General :: Multiple Machines: Share Data Using NFS / HTTP / FTP?

Apr 4, 2011

I have a network of 20 machines, all running Ubuntu 10.04.

Each machine has about 200[GB] of data that I'd like to share with all other 19 machines for READ ONLY PURPOSES. The reading should be done at the FASTEST POSSIBLE WAY.

A friend told me to look into setting up HTTP / FTP. Is it indeed the optimal way to share data between the machines (better than NFS)? if so, how do I go about it?

UPDATE: Just to clarify, all I want is to be able (from within machine X) to access one of machine Ys files and LOAD IT INTO MEMORY. all of the files are of uniform size (500 [KB]). Which method is fastest (SAMBA / NFS / HTTP / FTP)?

View 4 Replies View Related

General :: Check If Ssh Automatic Login Is Setup Between Two Machines?

Jul 22, 2011

I have a cluster of 50 machines and some machines already have ssh automatic login setup but I want to be able to check this with a script.

View 1 Replies View Related

General :: Search For A File In Multiple Machines Simultaniously?

Sep 15, 2010

Im new to the forum and fairly new to Linux as well. my apologies if this is posted in the wrong section. My problem is How can you search for a file in multiple machines (like a server farm) ? For example i log onto machine num1 and want to search for a file named "xxx.yyy" which may be in one of 4 machnies. What i do right now is manually log into each machine and run the find command. However i have heard that it is possible to do it via a couple of simple commands. I have looked into pssh and cssh as well as ssh tunneling (along with public key authentication to stop the machines requesting a password every time i log in) and unfortunately i was unable to find an answer.

View 4 Replies View Related

General :: Is It Safe To Mount Encfs Via Nfs On Several Machines Simultaneously

Mar 25, 2010

There are some encfs folders with private data on the server and all data is exported via nfs to all other omputers in the house.I can mount the encfs folders on another computer (using encfs command) to work with the data, but I never dared to mount it on more than one computer simultaniously, because I fear the encrypted data might get corrupted if more than one computer mount and access it at the same time.

So I want to ask about your experience: Is it safe to mount an encfs folder on several computers at the same time? All computers use "hard" and "sync" as nfs mount options to minimize risks of data loss. But can I access the folders simultaniously, or do I risk corrupting the encfs encryption and lose everything?

View 2 Replies View Related

General :: Add Machines To Netgroup In RHEL5 Just Like Jumpstart In Solaris

Aug 30, 2010

I was wondering if in RHEL5_3 if you can add netgroups to your kickstart file like when you are jumpstarting Solaris boxes? Trying to see if I can have a group of machines use a certain DHCP or DNS server during my kickstart.

View 3 Replies View Related

General :: Emulating Processor Type For Different Virtual Machines?

Apr 6, 2011

I am wondering, whether this is possible. Can I change processor architecture type in virtualization software for different virtual machines? Like I want to do some compilation on Intel itanium and I have physically intel xeon CPU.

View 1 Replies View Related

General :: Monitor The IP Address Of Machines Who Are Accessing The Server?

May 7, 2010

I have developed a website. Now i would like to monitor the IP address of machines who are accessing the server. The simplest possible solution to this that comes first into my mind is to use jsp inbuilt tags.

Code:
<%
out.print( request.getRemoteAddr() );
out.print( request.getRemoteHost() );
%>

but it has given me some other IP address(May be a proxy server's ip address)

So i was left with one choice is to run netstat on host server . Here is what i have done.

Code:
netstat -an | grep 8080 (As tomcat runs on port 8080).

Should i modify the command or there is any other way around to monitor the IP address?

View 5 Replies View Related

General :: Real-time Sync File Between Machines?

Jul 15, 2010

I have a few servers that are exposed to the internet. When someone tried to brute force hack in to the ssh, ossec adds their IP to the hosts.deny. Then the hacker (read: script kiddie) moves to the next IP up the line and hits my next server, etc, etc.

I end up getting 20 emails for all the servers that they hit.

My question, is there anyway to sync the hosts.deny file across multiple servers so that if they are locked out of one, they are locked out of all?

View 3 Replies View Related

General :: Getting Rsync Script To Run ?

Feb 24, 2011

I am trying to run a rsync backup Script to backup my data from my HD to my NAS Drive (currently mounted as Samba share, but can change to NFS if that would improve things, if I can work out how!), but when I run the Script I get the following error on every file it tries to copy

Code:

As I mentioned I am mounting my Share from my NAS as Samba and below is the fstab entry

Code:

The rsync command with options is as follows

Code:

The error seems to be with the -a option, but I have no idea why.

View 7 Replies View Related

General :: Rsync - Exclude-from Qns ?

Jan 8, 2011

I'm trying to do a sync of the root home directory to a folder call backup and excluding some files.

This is wat i executed:

rsync -a /root/ --exclude-from '/root/rules.txt' /root/backup/

My rules.txt is as below:

- anaconda-ks.cfg

Somehow it doesnt read the rules.txt and it will always include the anaconda-ks.cfg file.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved