duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Remove old incremental backups


From: Сергей Цаболов
Subject: Re: [Duplicity-talk] Remove old incremental backups
Date: Mon, 24 Oct 2022 10:55:37 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2

Hi,

Thank you for answer and help.

I try to remove all in incremental backup on one of VM and all incremental backups are deleted (to save the storage space) and let only the full backup for 16.10.22

root@vm1:~# duplicity remove-all-inc-of-but-n-full 1 --no-encryption --force file:///srv/duplicity/ --log-file /srv/remove.log 2>&1 | mail -s "Duplicity remove-all-inc-but-n-full 1 Complete" tsabolov@t8.ru
root@vm1:~# duplicity collection-status file:///srv/duplicity/
Last full backup date: Sun Oct 23 03: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 16 03:10:01 2022
Chain end time: Sun Oct 16 03:10:01 2022
Number of contained backup sets: 1
Total number of contained volumes: 16
 Type of backup set:                            Time:      Num volumes:
                Full         Sun Oct 16 03:10:01 2022                16
-------------------------


Found primary backup chain with matching signature chain:
-------------------------
Chain start time: Sun Oct 23 03:10:01 2022
Chain end time: Mon Oct 24 06:30:01 2022
Number of contained backup sets: 3
Total number of contained volumes: 18
 Type of backup set:                            Time:      Num volumes:
                Full         Sun Oct 23 03:10:01 2022                16
         Incremental         Sun Oct 23 06:30:02 2022                 1
         Incremental         Mon Oct 24 06:30:01 2022                 1
-------------------------
No orphaned or incomplete backup sets found.


Thank you, now I think on some VM automated remove some   incremental backups once of 3 weeks, I think can add it to crontab to remove.


19.10.2022 18:25, edgar.soldin--- via Duplicity-talk пишет:
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

_______________________________________________
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]