[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Remove old incremental backups
From: |
edgar . soldin |
Subject: |
Re: [Duplicity-talk] Remove old incremental backups |
Date: |
Wed, 19 Oct 2022 17:25:37 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 |
hey Sergey,
looks like `remove-all-inc-of-but-n-full 3` is working fine. you have 2 backup
chains in total, but defined 3 should keep their incrementals. so none are
removed. e.g. if you would define `remove-all-inc-of-but-n-full 1` you would
delete the incrementals of the older backup chain from 'Sun Oct 9 01:10:01
2022', keeping only the initial full.
wrt. your question "how I can remove not all but some Incremental backups"
backup chains are called that because they are linked chains. imagine the chain
to be e.g.
full -> incr1 -> incr2 -> incr3 ->incr4 ...
if you delete 'incr2' now, the chain will be corrupted from this point onward.
while theoretically, duplicity would be able to ignore this for files with no
changes in that specific incremental, this was never implemented
so all duplicity can offer is deletion of all incrementals or, as of now
unimplemented, starting from the back a selection of incrementals (effectively
shortening the chain).
hope that helped.. ede/duply.net
On 19.10.2022 10:03, Сергей Цаболов via Duplicity-talk wrote:
Hello to all,
I read the
https://futurile.net/resources/duplicity/#remove-old-incremental-backups
And try to remove the some incremental backups from storage but is not working.
I use this command
duplicity remove-all-inc-of-but-n-full 3 --no-encryption --force file:///srv/duplicity/
--log-file /srv/remove.log 2>&1 | mail -s "Duplicity remove-all-inc-but-n-full 3
Complete" myemail@domain.com
duplicity collection-status is :
duplicity collection-status file:///srv/duplicity/
Last full backup date: Sun Oct 16 01:10:01 2022
Collection Status
-----------------
Connecting with backend: BackendWrapper
Archive dir: /root/.cache/duplicity/afe4481beef92be2af167e0e61a6488d
Found 1 secondary backup chain.
Secondary chain 1 of 1:
-------------------------
Chain start time: Sun Oct 9 01:10:01 2022
Chain end time: Sat Oct 15 03:20:01 2022
Number of contained backup sets: 8
Total number of contained volumes: 12
Type of backup set: Time: Num volumes:
Full Sun Oct 9 01:10:01 2022 5
Incremental Sun Oct 9 03:20:03 2022 1
Incremental Mon Oct 10 03:20:01 2022 1
Incremental Tue Oct 11 03:20:01 2022 1
Incremental Wed Oct 12 03:20:02 2022 1
Incremental Thu Oct 13 03:20:01 2022 1
Incremental Fri Oct 14 03:20:01 2022 1
Incremental Sat Oct 15 03:20:01 2022 1
-------------------------
Found primary backup chain with matching signature chain:
-------------------------
Chain start time: Sun Oct 16 01:10:01 2022
Chain end time: Wed Oct 19 03:20:01 2022
Number of contained backup sets: 5
Total number of contained volumes: 9
Type of backup set: Time: Num volumes:
Full Sun Oct 16 01:10:01 2022 5
Incremental Sun Oct 16 03:20:09 2022 1
Incremental Mon Oct 17 03:20:01 2022 1
Incremental Tue Oct 18 03:20:01 2022 1
Incremental Wed Oct 19 03:20:01 2022 1
Can some one tell me how I can remove not all but some Incremental backups ?
--
Duplicity-talk mailing list
Duplicity-talk@nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
Duplicity-talk@nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk