[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Retension
From: |
Denis Klimov |
Subject: |
Re: [Duplicity-talk] Retension |
Date: |
Mon, 05 Apr 2010 17:27:32 +0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8pre) Gecko/20100202 Thunderbird/3.0.1 |
Hello, Henrik.
I using this script for backup to S3:
#!/bin/sh
export AWS_ACCESS_KEY_ID="SOMEKEYID"
export AWS_SECRET_ACCESS_KEY="SOMEACCESSKEY"
DUPLICITY_OPT="--num-retries 5 \
--tempdir /var/tmp/duplicity \
--volsize 250 \
--s3-european-buckets \
--s3-use-new-style \
--asynchronous-upload \
--no-encryption \
--force"
DUPLICITY="nice -n19 ionice -c3 duplicity"
SOURCE="/var/my_data"
TARGET="s3+http://my-backup-bucket/some_data_name"
echo "### Backup ###"
$DUPLICITY --full-if-older-than "`date -d '-10 days' --iso-8601`"
$DUPLICITY_OPT $SOURCE $TARGET
echo "### Remove old ###"
$DUPLICITY remove-all-but-n-full 1 $DUPLICITY_OPT $TARGET
echo "### Cleanup ###"
$DUPLICITY cleanup $DUPLICITY_OPT $TARGET
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
On 05.04.2010 15:40, Henrik Olsen wrote:
Can anyone provide a good template for a script managing backup retention
policies for use with duplicity?
I'm thinking of cleaning scripts for thinning the backup set to keep something
like yearly, monthly, weekly and daily backups, but delete the rest.
/Henrik
_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk
--
Klimov Denis,
zver