Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want duply to take a full backup every Saturday, but only if there was no manual full backup during the week.

I don't want a full backup to happen on any other weekday but Saturday.

Rationale: It may happen that I have to fix a backup during the week by running a full backup. Then, I want duply to skip the full backup on this Saturday and only run a full backup the next Saturday.

Currently I'm using a wrapper around duply to implement this logic. I wonder if there's a better way.

Or would I have to patch duplicity to implement an option:

--full-on-this-weekday-if-older-than-six-days=%d

share|improve this question

1 Answer 1

up vote 0 down vote accepted

My suggestion is to create two different scripts.

An incremental backup for Saturday with --full-if-older-than 6 and an incremental for the rest of the days in the week without --full-if-older-than.

share|improve this answer
    
I guess you're right. That should do everything I want. Thanks! –  flight Apr 14 at 16:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.