You are not logged in.

#1 2007-10-21 09:55:50

pointybirds
Member
Registered: 2007-07-02
Posts: 3

Saving bandwidth using pacman + rsync on multiple hosts

Hi all,

I have a server and a laptop both running arch.  To save downloading multiple copies of shared packages, I found this use of rsync to be handy:

rsync -auvvz `pacman -Q | perl -pe 's/(.*) .*/--include=$1-\*/'` --exclude=* -e ssh root@SERVERNAME:/var/cache/pacman/pkg/ /var/cache/pacman/pkg/

This will grab any packages that the laptop shares with the server.  Saves a bit of bandwidth, and avoids setting up nfs shares etc.

Offline

Board footer

Powered by FluxBB