Tag: Backup

My changes disappeared

pCP Team 6 May 2024 pCP 6.1.0 FAQ
piCorePlayer uses piCore which is predominately a RAM based system, so nearly everything is stored in RAM. If you modify or add files it is highly likely that you are doing the changes in RAM. So after a reboot your changes may disappear.

To make changes persistent you need to do one of the following:

  • add/modify files in your /home/tc or /opt directories, then do a backup—see piCorePlayer backup. The home and opt directories are already included in /opt/.filetool.lst so they get included in a backup.
  • add/modify files, then edit /opt/.filetool.lst to include these files, then do a backup—see piCorePlayer backup.
  • add files directly on the root partition of your storage device (ie. /mnt/mmcblk0p2).
  • add files directly on the boot partition of your storage device (ie. /mnt/mmcblk0p1).
Warning

The boot partition is used during the boot process and by default is normally unmounted.

piCorePlayer backup

pCP Team 19 April 2022 pCP 6.1.0

The “backup” on piCorePlayer is not a backup in the normal sense. As piCorePlayer is essentially a readonly RAM based system, it needs a mechanism to save the configuration files so the changes can be restored after a reboot. To achieve this, the piCore includes a program called filetool.sh that allows for a selective backup of files and directories that are listed in the file /opt/.filetool.lst—see Typical .filetool.lst
The default backup file is /mnt/mmcblk0p2/tce/mydata.tgz and is stored directly on the SD card in a persistent location. The files stored in the backup are automatically restored every time piCorePlayer reboots. This backup is not done for safety reasons, it is an essential part of the boot process.

The Software and Information is provided "as is" without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement.
Raspberry Pi is a trademark of the Raspberry Pi Foundation.