Software :: Mirroring System Folders Between Two Computers
Sep 7, 2010
I'm trying to mirror an apt-cacher-ng cache between two computers. I have apt-cacher-ng installed on my laptop, and I have another machine running apt-cacher-ng. In order to keep them both up to date with each other and to make sure all the computers have all the updates, I've been trying to find effective ways to keep them matched.
- Unison looks like what I want, it would delete files that are deleted, and it would add files that are added. (the assumption is if they're deleted from one, they'd be deleted from others).
- Rsync seemed quite a bit easier, especially with the advanced permissions issues. Apt-cacher-ng uses a user called apt-cacher-ng.
Instead of giving root an ssh password, I wanted to just ssh as apt-cacher-ng. Then I can still get the files over the network, but without the root account being open.
So I ran:
passwd apt-cacher-ng
and when I sshed, it looked like it was working until it logged me out (almost immediately). So that's not working. What am I missing? Maybe there's a better tool then rsync for this?
View 2 Replies
ADVERTISEMENT
Aug 31, 2010
I am trying to make a script that would allow me to transfer files to one computer to another. We have multiple computers which needs the files to be transferred regularly. The script is listed below. The script is ok when I tried to run only for one file but when I use wildcards nothing happens.
#!/bin/csh
set SOURCEFILE=$1
set TARGETCOMP=$2
set TARGETDIR=$3
switch ($TARGETCOMP)
[Code]....
View 2 Replies
View Related
Mar 30, 2011
I believe it was rsync was the tool. I have a box running CentOS 5. It has a 250GB HD in it. I have another drive with the exact model. Currently it has a as a said a 250GB IDE drive. I want to shutdown the machine, install this other hard drive and set up a cron job that will backup my main drive at times that I set. This way if the main drive fails, I do not loose all the data and have to rebuild the server from scratch as I have been custom configuring it for years. I can't remember if there was an issue with the main drive being mounted to back it up or not. I have looked at some of the how's on rsync but they seem to only talk about using another server for this. If I shit down the box, install the new drive, and the box boots back up, is it going to ask about that drive or what do I need to do to get rsync going and does it partition the drive as such? And can I do it this way. This way if the main drive fails, I can just swap the drive and be on my marry way.
View 2 Replies
View Related
Apr 8, 2010
I have two web servers. One is active and one is in reserve. I keep the user data (web pages) in sync by running rsync every 10 minutes or so. This copies any changes from the active machine to the reserve machine. But, it's slow, only gets changes every 10 minutes, bogs down the disk, does strange things to files that are changing during the rsync process etc...
I want something that will automatically copy any changes from the active server to the reserve server as they are made. IE I hit 'save' on the active server, it copies the file to the reserve server. Simple!
I've been looking around and I see GFS which is really vastly more complicated than I need. I'm happy with read-only access on the reserve host, so I don't need distributed lock management.
I could theoretically implement this by setting inotify watchers on every file and running an SCP or rsync command when a file gets saved. So, it can't be that hard.
I do not need a true networked file system, as in something I mount over the network. I just want something to keep my disks in sync.
View 3 Replies
View Related
Apr 6, 2010
Blue sky thinking at the moment:I have a number of file servers, each at different sites. I would like to be able to make these appear as one, so that files on any server can be accessed from any site, and the user doesn't even see there are multiple servers.Obviously, the internet is slow, especially the upload speeds. So when a file is written the write ought to go to the server on the client's LAN - even if it was previously on another of the servers.However, for robustness, some sort of background mirroring is also wanted. If all the servers were left on and connected, they eventually end up all in sync. But this mirroring needs to be mindful of bandwidth usage; if someone writes a big file to their local server, copying that to the other servers can't interfere with normal internet usage.I think UnionFS or similar might be able to handle the unioning side, but not the mirroring stuff.
View 2 Replies
View Related
Nov 5, 2010
Is there any software that will do full mirroring between a local and a remote file system. I have a server (9.04) and a laptop (9.10). Each user has shared a shared directory on the server, and on the laptop. Updates to files may be done on either system. I want to keep both copies syncronised. Currently I use a script based on rsync (scheduled by cron) to keep the local and remote copies in sync.
The problem with this approach is that rsync only seems to be able to handle deletion of files if one file system is the master, which is not the case in my set-up. If I move a file to a different directory, rsync will reinstate the old file as well as copying the new one. I was hoping there was some software that could do proper mirroring between the 2 systems, but6 so far I cannot find anything.
View 3 Replies
View Related
Aug 22, 2010
I have two computers with Ubuntu 10.10 on them, a desktop and a laptop. I have two options for handling them:
Try and keep them the same
Accept that they have different 'personalities' and branch off their on way
However, I've chosen the first option because I like to keep my files and settings the same on both computers. I am in the process of extracting a tar archive I made of my entire desktop's hard drive (9.7GiB) onto my laptop, so after this is done they will be exactly the same. However, upon turning the laptop on with my freshly-copied system, things will become different. If I take the laptop to school, for example, and do stuff there, then come back home, and do stuff on my desktop, how can I sync these computers (both ways!) with the new changes at the end of the day/week/whatever?
View 2 Replies
View Related
Jul 24, 2011
In a few months I am gonna be starting a website that handles credit card information.
A requirement of my servers is that they be fully self-maintaining.
By this is mean that they will download their own updates, restart them-self, and switch them-self back on after general house power failure (black out).
Is there a way in Linux to make the computer automatically reboot itself after download and installing an update (if it needs to). My Linux uses the apt package system, with Synaptic Package Manager/Update Manager.
Now here is another problem I found. When a customer has logged into my site, my computer won't register them as logged in when they've rebooted? Like, its going to issue them new cookies? Credit card transaction process will be have to be restarted?
What if I build two identical server running in sync with each other... sort of like RAID mirror.. and they both download and install updates, once their both ready to reboot. Computer 1 will reboot. On successful reboot, System 1 alerts System 2 that it successfully reboot and that System 2 may now reboot. This way the customers experience is not interrupted.
View 2 Replies
View Related
Mar 7, 2010
How to design secure fault tolerant network (routers, firewall, domain servers, etc) of 300 wireless computers separated in multiple buildings and floor with multiple users for each station mainly utilizing dtp and internet software?
View 1 Replies
View Related
Jan 31, 2011
im trying to connect two computers on lan.One computer has: VMWare Workstation and has Opensuse 11.3 mounted in it.The other computer has: VMWare Player and has Opensuse 11.3 mounted in it.Both computers are connected to a switch with cables.I have followed this guide in both computers:Depanati singuri calculatorul!: Opensuse 11.3 - configure local networkin order to setup a network.In one computer, if i go to: Computer---Network---Network folder, i only see one machine. When in fact i could see both of them right
View 9 Replies
View Related
Mar 24, 2010
I am looking for an automated backup system and I like bacula. I have 3 Notebooks and a Desktop computer that need regular backup. Now I don't want to let them run all night just to do the backuping, so I was thinking I could use wake-on-lan to have bacula wake up the machines, then do the backups, and shut them down afterswards. While this may work with devices on the ethernet, it won't work with the Notebooks on the wifi. So is it possible to have the Notebooks schedules to automatically wake up from suspend or shutdown ? Or is it possible to interject a shutdown command if it is after a cerain hour and call the bacula director to start the backup now?
View 2 Replies
View Related
May 20, 2009
I have built a linux router with a pc having two network cards. I am running ubuntu 8.10.
I have enabled forwarding on the router. One network (192.168.1.0/24)is connected to eth0 and another (192.168.2.0/24) is connected to eth1.
The interfaces have addresses 192.168.1.1 and 192.168.2.1.
On any side side of the network, I can ping both interfaces on the router.
However when I ping a machine on the other side of the network, I get 100% packet loss.
I have not touched iptables on the router or any machines.
What I am doing wrong?
View 2 Replies
View Related
Jun 2, 2009
I recently built my second general-purpose server, and recently installed fedora core 10 on it. The first thing I attempted to set up after installation was the network - and that's where it's gone wrong When editing a network device using the graphical system-config-network utility, I find that the subnet mask is being automatically changed to match the default gateway address every time I attempt to modify any of its settings (or sometimes even when I cancel the changes). This also means that I cannot set the subnet mask, as it simply won't accept my setting for it. I seem to be able to get around this glitch by setting the subnet mask using the shell version of the same utility, but that doesn't solve my network issue.
Even when I use the shell utility to fix the subnet mask, I'm unable to ping other computers or routers on the network even when ifconfig indicates that the desired ip address has been taken, and other computers on the network are also unable to see the server. I'm using a wired connection and a static IP address on a network with no DHCP.
View 14 Replies
View Related
Jan 18, 2010
I can't figure out where to see when files and folders where created on the system. All I can see in Gnome and the terminal is the modification time. I also want to see the last access time.
View 2 Replies
View Related
Oct 15, 2010
Why am I trying to create folders in the file system you ask? I'm messing around with Drupal and I want to add some modules. So I need to go to the blablabla/sites/ folder and add an 'all' folder followed by a 'modules' folder.No problem, right? Wrong?It seems I don't have the rights to create folders in the file system ( which I only recently figured out is actually root. duh. )I've figured out that I was able to install all the LAMP parts because I was using 'sudo' before every command, which apparently grants me temporary rights to root? ( I think? )Sooo... what's the magic for creating folders and transferring files to my Drupal folder... which it seems requires root permissions?
View 9 Replies
View Related
Nov 9, 2010
I have set up a dual boot system with Windows XP and Ubuntu 9.10. I have upgraded Ubuntu to the most current version available online. I'm unable to create folders or subfolders in the Linux file system. I have researched the manual and my Unbuntu Linux book and see that I should be able to click on 'File' from the menu, then 'Create Folder', and then input the new folder name, but the 'Create Folder' selection is 'grayed' out which I conclude means that it is set on inactive and unable to be used. I am able to access my Windows disk by mounting and then typing in my password, so I have Administrator privileges.
I'm able to create a new folder in Unbuntu Linux for my Windows (NTFS) files. When I installed Unbuntu, I did not see any options to have write access to the Ubuntu file system. I can create new files within the existing folders. Soon after working out my Linux problems, I will be using PHP/MySQL/Apache to do some important work, so I will need to be able to create new folders and subfolders in my Linux system. I have some urgent tasks I need to do away from my PC soon, so I will be a while before getting back to this.
View 1 Replies
View Related
May 19, 2010
Based on Ubuntu 10.04 Lucid Lynx, Linux 2.6.32, Gnome 2.30 and Xorg 7.4, Linux Mint 9 "Isadora" features a lot of improvements and the latest software from the Open Source World. anyways, I just done a fresh install and I cannot create no folders in my own file system, anywhere? It must be permissions, because when I try in terminal I get permission errors. Also this is my first Linux install
View 5 Replies
View Related
Nov 28, 2010
I have a computer running Ubuntu 10.10 32-bit with Gnome and another computer running Windows 7 64-bit. How can I share folders between these? I can use Samba to view my Windows shares, if I specify the IP address by going to the "Connect to Server..." option in the Places menu. Going to "Network" in Nautilus and trying to open "Windows Network" fails because it could not retrieve the share list from the server.
MY question, though, is how can I set up Samba (or some other software) such that my Windows box will be able to see my shared folders? And also, what is the difference between Samba and Samba4 (because both are in the repositories).
View 1 Replies
View Related
May 26, 2011
Is there any other short/easier and smarter way to do the following in Linux? code...
I need to use crontab to create folders every day and every month inside /home/abcd/dammi, /home/abcd/harrami, /home/wxyz/dammi and /home/wxyz/harrami. Can anyone help me with this?
View 2 Replies
View Related
May 12, 2010
i'm having a problem with my bottom panel, after changing from ubuntu 9.10 to ubuntu lucid lynx it does'nt display the programs or folders open on the system
View 1 Replies
View Related
Jan 28, 2011
Lately, when I go to the top panel, click on 'places', then click on any of the folders (documents, pictures, etc.), ubuntu opens rhythmbox music player. In order to open any of the other folders, i must first go to 'places', then to 'file system', & then to the desired folder. My system didn't always do this.
View 1 Replies
View Related
Jul 8, 2010
i have a centos 5.4 without desktop environment. i can only access certain system settings via browser (and of course console). i would like to encrypt some folders. but these folders are used by the system. can i encrypt them? will the system still be able to access these folders? if yes, how can i encrypt only through console or is there something web based software for this?
View 12 Replies
View Related
Nov 15, 2010
tab-completion indexes system folders (like /usr/bin, /usr/local/bin)! so say i'm in a folder that has two files, 'text' and 'myprog', i type in an 'm' then tab, and i get hundreds of results including 'mysql', 'mysqlconfig', and others as im sure you can imagine. is there a way to set it to default or something else that will only make it index the current folder?
i tried changing my PATH variable so i could execute programs in the current directory without './' - what i added to PATH was ':.' at the end (apparently this is not the way to do it... :S). i tried resetting PATH various times ('unset PATH', 'PATH=$whatever...') but this has not fixed the problem. using 'unset PATH', of course, removes everything from PATH, which meant that functions (like 'ls') in /usr/bin and /usr/local/bin can't be found. obviously i want those to be found, but i would rather not tab through them!
View 2 Replies
View Related
May 11, 2011
Does anyone here knows how to share files/folder with two different GNU/Linux OSes?
I have a notebook and desktop computer here. The Operating System of my notebook is Easypeasy and my desktop computer is Linux Mint. I already install the Samba on both computers. I could open the folders that I shared under my Documents. But when I tried to open the shared folder under the NTFS drives or even the drives itself (of my notebook or desktop computer) it will prompt an error.
This is the error: "Unable to mount location. Failed to mount Windows share."
View 1 Replies
View Related
May 5, 2010
I had a major raid event recently which caused my Ubuntu 9.04 server to recover part of its file journal on the system partition. This caused some of the file permissions to go all funny and I now need to change them manually.
What the file permissions should for the following folders:
/etc/
/home/
/lost+found/
/mnt/
/root/
/sbin/
/srv/
/tmp/
The server is running and I fixed the some of the ownership issues already. I use a basic LAMP setup with samba, and proftp.
View 2 Replies
View Related
Aug 11, 2010
I dont know whats wrong with my desktop....but it is not displaying folders and files in desktop after starting the system.The mouse right click is also not working.But the panels are working.
But once I browse files on my cell phone(using bluetooth) with my system,the desktop is working as usual.
I think I have to add some application( which loads desktop) to list of start-up applications.
View 2 Replies
View Related
Oct 7, 2010
I'm looking for a script to run that will be run from my linux box to copy folders from a windows server at a certain time on a daily basis.
View 2 Replies
View Related
Feb 21, 2011
Is there any way to share folders in linux machine to windows machine except samba and ftp..
samba is blocking by the hosting company.
View 3 Replies
View Related
Jun 3, 2010
how to set mirroring (RAID 2) withing centos 5?
View 3 Replies
View Related
Apr 9, 2010
I need to organise an external HDD such that there is no more than 500 folders on it.
Ubuntu's "Properties" pane shows only the file count, not the folder count.
Is there a simple CLI line that will tell me the number of subdirectories?
View 3 Replies
View Related