Skip to contentSkip to conversation

Is it possible to restore the state of a nilfs2 partition after deleting files?

DISCUSSION Frank Schwidom 2 participants 2 messages May 25, 2023 – May 26, 2023 NILFS2 filesystem

lore
Share & tools
lore
#0 lore raw

Hi,

is it anyhow possible to set the state of a nilfs2 partition to the latest checkpoint or snapshot?

(I am using nilfs-tools 2.2.7-1 on
Linux debian64 5.10.0-0.deb10.16-amd64 #1 SMP Debian 5.10.127-2~bpo10+1 (2022-07-28) x86_64 GNU/Linux)

Thanks in advance,
Frank

#1 lore raw
Quoted 5 lines · On Fri, May 26, 2023 at 12:37 AM Frank Schwidom wrote:

Hi,

is it anyhow possible to set the state of a nilfs2 partition to the latest checkpoint or snapshot?

Unfortunately there is no special command to do that easily.

Instead, since NILFS can mount the current tree at the same time as the snapshot, it is common to mount them on two directories at the same time and write back part or all of the snapshot to the current tree using rsync or so.

If you're expecting native filesystem functionality, sorry for the inconvenience, but the answer is no.

Regards,
Ryusuke Konishi

Quoted 6 lines

(I am using nilfs-tools 2.2.7-1 on
Linux debian64 5.10.0-0.deb10.16-amd64 #1 SMP Debian 5.10.127-2~bpo10+1 (2022-07-28) x86_64 GNU/Linux)

Thanks in advance,
Frank