Duplicity on Multiple Folders

Friday, October 17th, 2008

To run duplicity on several folders using the ssh backend I created this bash script:

#! /bin/bash
$USER=”user”
$HOST=”host”
$KEY=”.ssh/key_to_server”
cd ~
ssh-add $KEY
read -s -p “GnuPG password:” PASSPHRASE

echo -e “\n####DEV####”
PASSPHRASE=$PASSPHRASE duplicity -v6 dev/ scp://${USER}@${HOST}/backup/dev
duplicity remove-all-but-n-full 3 scp://${USER}@${HOST}/backup/dev
echo "########DOCUMENTS#######"
PASSPHRASE=$PASSPHRASE duplicity -v6 /media/Hoppla/Users/Gaute/Documents/ scp://
${USER}@${HOST}/backup/dokument
duplicity remove-all-but-n-full 3 scp://
${USER}@${HOST}/backup/dokument

Just repeat the last three lines for each dir you want to backup. For some reason duplicity doesn’t follow symlinks so you have to add those manually.

Updated PKGBUILD for Archlinux for newest version:

# $Id: PKGBUILD,v 1.12 2008/08/02 20:27:55 Snowman Exp $
# Maintainer: Aaron Schaefer
pkgname=duplicity
pkgver=0.5.02
pkgrel=1
pkgdesc=’A utility for encrypted, bandwidth-efficient backups using the rsync algorithm’
arch=(’i686′ ‘x86_64′)
url=’http://www.nongnu.org/duplicity/’
license=(’GPL’)
depends=(’gnupg’ ‘librsync’ ‘ncftp’ ‘python’ ‘python-boto’ ‘python-gnupginterface’ ‘python-pexpect’)
source=(”http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz”)
md5sums=(’475e09b3eae5d9875e4177d487dc8986′)

build() {
cd $startdir/src/$pkgname-$pkgver
python setup.py install –root=$startdir/pkg || return 1
}

Put the PKGBUILD in a folder and do:

$ sudo pacman -R duplicity
$ makepkg -c
$ sudo pacman -U duplicity-0.5.02-1-i686.pkg.tar.gz

Tags: , , ,

mppc for arch linux, kernel 2.6.24 and ppp 2.4.4

Wednesday, March 19th, 2008

I managed to manually merge the mppc patch into kernel 2.6.24 and ppp-2.4.4 using a modified version made for 2.6.23 from Devil Linux. And I updated the kernel26 and ppp PKGBUILDs for Arch Linux to use them.

I had a VPN with mppc running and could comfortably ssh to the machines on the network, but I am unsure about the stability.. this has been extremely little tested, so take care..
Usage is explained on the official site for the original patch: http://mppe-mppc.alphacron.de/ usage of PPTP on Arch Linux in the wiki. For Arch you probably need ppp-mppe and pptpclient.

Modified patch for kernel and ppp:
linux-2.6.24-mppe-mppc-1.3.patch
ppp-2.4.4-mppe-mppc.1.1.patch

Patch for the source for the Arch packages in ABS:
kernel26-arch-mppc.patch

ppp-2.4.4-arch-mppc.patch

Patched source for the Arch Packages (extract and run makepkg -c and pacman -U on the result):
kernel26.tar.bz2
ppp.tar.bz2

Packages for Arch (pacman -U):
kernel26-2.6.24.3-3-i686.pkg.tar.gz
ppp-2.4.4-6.i686.pkg.tar.gz

mppc is patented and if you feel like you should have a look if you are allowed to use it.

Tags: , ,
  • Viagra ordre
  • Cialis en ligne
  • Levitra en ligne
  • Propecia acheter
  • Viagra acheter
  • Acheter cialis
  • Ordre levitra
  • Ordre propecia
  • En ligne viagra
  • Vente cialis
  • Levitra bon marche
  • Propecia en ligne
  • Viagra online
  • Buy cialis
  • Order Levitra
  • Buy propecia
  • Buy viagra
  • Cheap cialis
  • Cheap Levitra
  • propecia online
  • Viagra prescription
  • Cialis online
  • Buy Levitra
  • Order propecia