Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #56172
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: Can crypsetup --type plain destroy a previous written partition? |
| Date | 2019-05-10 23:52 +0200 |
| Message-ID | <gjma47Fmil5U1@mid.individual.net> (permalink) |
| References | <qb21mk$eti$1@gioia.aioe.org> <gjkeveFa7fmU1@mid.individual.net> <qb449g$1ifr$1@gioia.aioe.org> <gjlo21FiqioU1@mid.individual.net> <qb4akm$foe$1@gioia.aioe.org> |
On 10/05/2019 18.59, Paulo da Silva wrote: > Às 17:43 de 10/05/19, J.O. Aho escreveu: >> On 10/05/2019 17.10, Paulo da Silva wrote: >>> Às 06:02 de 10/05/19, J.O. Aho escreveu: >>>> On 09/05/2019 22.14, Paulo da Silva wrote: >>>>> Hi all! >>>>> >>>>> Can crypsetup --type plain destroy a previous written partition? > ... >>> I have the large majority of snapshots inside a subvol. I wonder what >>> happens if I apply send/receive to this subvol. >>> This is a very singular situation and I opted to go thru the simplest >>> solution (for me, of course). >> >> Not sure, but I don't think it will send the snapshots, as if it would >> then it would have the older snapshots inside the new snapshot, > So don't I. I'll make a test using files/loop devices one of these days > to see what happens. > if you >> want to keep all the snapshots, you have to make a send for each of them. > > But then I'd get a big amount of duplicated data. Most likely it did not > fit in the new vols, even considering that they doubled the available space. > To avoid duplication you first send your oldest snapshot btrfs send /mnt/send/oldestsnashot | btrfs receive /mnt/recv/ and then you send the diff between the oldest and next oldest btrfs send -p /mnt/send/oldestsnapshot /mnt/send/nextoldestsnapshot | btrfs receive /mnt/recv And you do this for each snapshot, then you just get the changes, which leads to that less data is moved around. This can be used if you want to make a backup of a volume. First time you do a full backup, you make a snapshot of the volume, you send the snapshot to your backup device. Next time you make an incremental backup by making a new snapshot, you send the diff between the first snapshot and the new one, when finished you can delete the oldest snapshot. When you make the next incremental backup, you take a third snapshot, send the diff of the second and third snapshot, delete the second snapshot. When the backup media starts to fill up, just delete the oldest snapshot. No data is duplicated on the backup media. This is how I do backups and the nice thing is that you can do it between computers too with help of ssh too btrfs send /mnt/send/oldestsnapshot | ssh root@remote-server "btrfs receive /mnt/recv" which IMHO is quite nice. -- //Aho
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-09 21:14 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 07:02 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 16:10 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 18:43 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 17:59 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-10 23:52 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-11 04:08 +0100
Re: Can crypsetup --type plain destroy a previous written partition? "J.O. Aho" <user@example.net> - 2019-05-11 09:40 +0200
Re: Can crypsetup --type plain destroy a previous written partition? Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-11 18:50 +0100
Re: Can crypsetup --type plain destroy a previous written partition? [EXLAINED] Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2019-05-10 16:00 +0100
csiph-web