Duplicity on Multiple Folders
Friday, October 17th, 2008To 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:” PASSPHRASEecho -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:
Tags: archlinux, bash, linux, python$ sudo pacman -R duplicity
$ makepkg -c
$ sudo pacman -U duplicity-0.5.02-1-i686.pkg.tar.gz



