1

I am running Ubuntu 19.10 on a USB with persistence and I want to backup all of my data. I have heard that there is a casper-rw file that you can backup, but I can only find a folder called casper-rw, which is empty, and another one called casper-rw1, which is where my data is stored. How can I back it up? I extracted it and made it persistent with Rufus on my Windows computer in case you needed to know

1 Answers1

0

If you created your persistent live drive with mkusb, there is a system for it described at this link.

Generally, you should boot

and then you can use for example sudo rsync ... or sudo tar ... to backup

  • the whole partition for persistence
  • or if a file for persistence
    • loop-mount it and backup on the file level
    • or copy the whole file for persistence to the backup media.

If you have both a folder called casper-rw, which is empty, and another one called casper-rw1, I think that there are two partitions for persistence. Both are automatically mounted, and the second one to be mounted was given the mountpoint /media/ubuntu/casper-rw1 (or something similar depending on the flavour of Ubuntu).

Please be aware that there can be both confusion and corruption of data, if you boot with two (or more) partitions for persistence connected. It is OK to boot into one persistent live drive, and connect another persistent live drive afterwards (when the boot process has finished and you are at the desktop).

sudodus
  • 47,684