bash:duplicity
Script pour duplicity
Ce script crée un lockfile, effectue une sauvegarde avec un volsize de 500 Mo, chiffre avec un mot de passe défini… c'est fait pour être croné. NB: je recommande Attic
- duplicity
#!/bin/bash locker="$HOME/Bureau/duplicity_en_cours.lock" sourcefolder="$HOME" destfolder='file:///media/sauvegarde/' if [ -f $locker ] then exit else touch "$locker" PASSPHRASE="Ceci est un mot de passe solide" LOGERROR="/tmp/duplicity-error.log" LOGREPORT="/tmp/duplicity-status.log" exec 2> ${LOGERROR} export PASSPHRASE duplicity --name="sauvegarde" --allow-source-mismatch -v 9 --volsize 500 $sourcefolder $destfolder # Rapport duplicity collection-status $destfolder >> ${LOGREPORT} rm "$locker" fi
bash/duplicity.txt · Dernière modification : 2014-12-09 20:31 de 127.0.0.1