Navigatrix.net - A Voyager's Companion
http://navigatrix.net/

Backup of Persistence file
http://navigatrix.net/viewtopic.php?f=4&t=739
Page 1 of 1

Author:  torototeo [ 27 Nov 2014, 16:21 ]
Post subject:  Backup of Persistence file

Is it possible to backup the persistence file?
Or better if it is, would be something usefull to restore?
I ask this because it happen to me when I change my preference on theme that after the launcher menĂ¹ does not work anymore.

Author:  Moe [ 27 Nov 2014, 19:20 ]
Post subject:  Re: Backup of Persistence file

It's a little confusing to explain because of the smoke and mirrors involved.

The persistence file, when you look at it from the outside, (from another system, viewing a USB, for example), it is called casper-rw

Inside casper-rw is just the directory structure and data you see when you are working in the system that supersedes the data in the /casper/filesystem.squashfs (the entire system in compressed form) of the same USB installation.

This is long way of saying, yes you can back it up, but it is like moving a bed you are lying on.

A far simpler method is to locate the area (in that file structure) you wish to back up, and back up those areas.

With the Menus (.desktop files) it really is a small amount of data. While their locations do have a rationale, to me it looks scattered like someone dropped a box of index cards and just filed them in a first convenient spot.

For example,
  • /etc/skel/Desktop/home.desktop <-- .:Home:. on the desktop
  • /home/moe/.config/autostart/shutter.desktop <-- added to autostart and not directly Menu
  • /home/moe/.gnome/apps/jetbrains-pycharm.desktop <-- added
  • /home/moe/.local/share/applications/idle-python3.4.desktop <-- like the one above
  • /home/moe/Desktop/lxterminal.desktop <-- Desktop "shortcut"
  • /usr/local/share/applications/calibre-gui.desktop <-- No idea why...
  • /usr/share/applications/pcmanfm.desktop <-- Where I think they all should be
but they are not. There are also some scattered elsewhere, and I just get confused pondering the reason, particularly when the name of the menu entry may not be the name of the file that controls that menu entry.

This is why I prefer an application like menulibre (listed as Menu Editor, in two Menu locations, but is one file /usr/share/applications/menulibre.desktop) so I don't have to think about it.

A very 'simple' solution is to copy the file you are modifying, either to a different directory, or renamed in the same directory with the file manager, or commandline, for example
Code:
sudo cp /usr/share/applications/pcmanfm.desktop{,.backup}


My father always said, "education is expensive", and unfortunately you are learning how things go wrong the hard way...but I'm not sure there is an easy way that stays with us, 'cause education is expensive.

For a little more background:

http://wiki.lxde.org/en/Main_Menu
http://lkubaski.wordpress.com/2012/11/0 ... -sections/

Good luck.

Author:  torototeo [ 28 Nov 2014, 02:46 ]
Post subject:  Re: Backup of Persistence file

Thanks Moe,
one more question:
I feel the system is very fast and good, but for some reason you can loose everything, is it possible to backup the entire system like "today working" and later restore it?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/