The easiest way to backup a CynogenMod (CM) based Android, such as Replicant, is to enter ClockworkMod Recovery (CWMR) and use the backup/restore feature. However that won't work in a device with Full Device Encryption (FDE) because the /data
directory is encrypted and therefore unaccessible in CWMR.
Thus we'll have to use backup apps that work within CM, when /data
is accessible. The following procedures can be used to backup and restore all your apps, data and settings, using only free software.
- Install oandbackup. Go to
preferences > cryptography
, enable encryption and set up your OpenPGP email. Back in preferences enablecopy own apk
andspecial backups
. - Use oandbackup to backup data+apk for all your user apps. Tip: use
batch backup
withsort and filter
. - Still within oanbackup, do a data only backup for all system apps except: Android System (android), Settings (com.android.settings), Settings Storage (com.android.providers.settings) and Wallpaper (wallpaper). These would break your new CM installation if imported into it.
- Move the backup files, usually located on
/sdcard/oandbackups
, to an external location, for instance your PC. - Install Slight backup and use it to backup your system settings.
- Move the backup files, located on
/sdcard/backup
, to an external location. Slight backup does not encrypt backups. Make sure to store them safely.
- Copy
oandbackups
andbackup
directories into your sdcard. - Install oandbackup, its apk should be inside
oandbackups
directory. - Use oandbackup batch restore to restore all your backups.
- Install Slight backup and restore your system settings.
- Reboot your phone.