On Fri, Feb 9, 2018 at 2:10 PM, Peter Suetterlin
Hi list,
I just had a try at converting my old TW installation on the laptop (installed 2016.08) to the new one-var-only subvolume scheme. (I have deleted all snapshots except the currently used one before starting, maybe daring, but I didn't want that to interfere. In hindsight leaving one around should be the safer option? But you cannot roll back to those anyhow after the subvolumes are deleted...)
/var is in use permanently, so I decided to do this offline, booting from another system (install system / USB should be fine) I used the test install I did yesterday, on external USB disk /dev/sdb.
My old, main system (i.e., the btrfs root) is on disk /dev/sda4
Here's what I did:
# mount top level mount -o subvol=/ /dev/sda4 /mnt # /var exists, so new name btrfs subvolume create /mnt/@/newvar
# Now fill the new /var with old content from snapshot and var subvolumes. # I'm still on the original snapshot, never did a rollback. So:
rsync -avr /mnt/@/.snapshots/1/snapshot/var/ /mnt/@/newvar/ rsync -avr /mnt/@/var/ /mnt/@/newvar/
The above confuses me. How do you rsync from /mnt/@/.snapshots and /mnt/@/var/ I did not think /mnt/@ (aka /@) existed yet (i.e., in the older TW layout). -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org