Re: How do I restore BTRFS snapshots ?

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

 





On Mon, Nov 30, 2020 at 2:38 AM Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:

There's a lot more than one way to do this. As one possible example:

$ sudo mount /dev/nvme0n1p7 /mnt
$ cd /mnt
$ ls -li
total 0
256 dr-xr-xr-x. 1 root root 1330 Nov 26 23:25 boot
256 dr-xr-xr-x. 1 root root 1966 Nov 23 22:43 boot.20201126
256 drwxr-xr-x. 1 root root   10 Jul 27 12:22 home
256 drwxr-xr-x. 1 root root   10 Jul 27 12:22 home.20201126-2
256 drwxr-xr-x. 1 root root   26 Nov  1 13:05 images
256 dr-xr-xr-x. 1 root root  132 Nov  5 18:23 root
256 dr-xr-xr-x. 1 root root  132 Nov  5 18:23 root.20201126


When I mount my root filesystem using:

$ cryptsetup luksOpen /dev/sda2 /dm_crypt
$ Enter Passphrase:
$ mount -t btrfs /dev/mapper/dm_crypt /mnt
$ ls 

I get:
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var

There is no listing of subcolumes. Where exactly are you getting that from ?

# mv root rootold
# btrfs sub snap root.20201126 root
# reboot


I can't do this because I have no idea what to mv on.

I think all my info is in the toplevel volume.

which is why I say the installer is not correctly setup for snapshots in BTRFS.

--
Regards,
Sreyan Chakravarty
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux