← Back to team overview

duplicity-team team mailing list archive

Re: [Question #263472]: taking multiple full backups

 

Question #263472 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/263472

    Status: Open => Answered

Aaron Whitehouse proposed the following answer:
Hi Satish,

I understand from your earlier question that you are using the command:
duplicity \
    --num-retries 20 \
    --archive-dir "~/.cache/duplicity/" \
    --tempdir "/tmp" \
    --s3-use-new-style \
    --exclude "**cyrus.squat" \
    --file-prefix-archive "_" \
    --include-globbing-filelist "duplicity.list" \
    --exclude "**" \
    --encrypt-key {removed} \
    --volsize 256 \
    --verbosity 5 \
    --s3-use-multiprocessing \
    ${SOURCE} ${DEST} > ${DAILYLOGFILE} 2>&1

If you take a look at the manual:
http://duplicity.nongnu.org/duplicity.1.html

"If the above is run repeatedly, the first will be a full backup, and
subsequent ones will be incremental. To force a full backup, use the
full action:

    duplicity full [options] /home/me sftp://uid@xxxxxxxxxx/some_dir

or enforcing a full every other time via --full-if-older-than <time> ,
e.g. a full every month:

    duplicity --full-if-older-than 1M /home/me sftp://uid@xxxxxxxxxx/some_dir 
"

Are you doing any purging of old backups? If you are generating full backups on a regular basis (say every month), you may like to automatically remove old full backups. See the descriptions for the following commands in the man page for more detail:
remove-older-than <time> [--force] <url>
remove-all-but-n-full <count> [--force] <url>
remove-all-inc-of-but-n-full <count> [--force] <url>

You may also like to look at duply (http://duply.net/) which makes
maintaining profiles of complex commands (as you are starting to have
above) a bit easier, as you just set them up once in a configuration
file.

-- 
You received this question notification because you are a member of
duplicity-team, which is an answer contact for Duplicity.