Jump to content

Recommended Posts

Posted

What I want is a way to keep my remote computers around my network, synaptic updates in sync. with the main computer where I have downloaded the updates.

eg. /var/cache/apt/archives

 

I have tried

"Unison" could not get it to work.

"Komparator" sort of worked, but not what I wanted.

"grsync" no good for a network.

 

Do you know of any file synchronisation tools that will work over a network.

 

OS = PCLinux

Posted

apt-mirror is the tool you need... essentially it creates a copy of the repositories that you use. I use it for my servers... they upgrade quickly!

 

As a bonus, you can use your apt-mirror for network installs too ;)

Posted

rsync is what you want. It does work over a network, thats its primary function. I'm surprised the gui doesn't allow it.

best bet is to pipe it through ssh. a google "ssh rsync" reveals all.

Posted (edited)
rsync is what you want. It does work over a network, thats its primary function. I'm surprised the gui doesn't allow it.

best bet is to pipe it through ssh. a google "ssh rsync" reveals all.

 

I will retry this.

Edit... Have found 'Grsync' with a GUI font end on it.

Edited by tickmike
Posted

In hindsight, my solution wasn't a complete one...

 

1. You need to pick a server with a decent amount of hard disk space (apt-mirror uses a fair whack). Configure apt-mirror to automatically download uploads and then leave it to do its stuff.

 

2. On all your servers, edit the /etc/apt/sources.list file so that it points to your apt-mirror rather than the distro's servers.

 

3. Create a cron job on each server to run a script similar to the following every so often:

#! /bin/sh
aptitude update > /var/log/aptitudeupdate.log
aptitude safe-upgrade > /var/log/aptitudeupgrade.log

 

I would add some sanity checking to the script and you need to run it as super user.

 

You now don't need a GUI since it is all automagical. You will have to run 'aptitude full-upgrade' manually occasionally to get kernel updates, etc. If you point your desktop to the same apt-mirror you will be notified about these changes anyway.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...