Skip to content

Tags: VR-25/migrator

Tags

v2021.7.16-beta

Toggle v2021.7.16-beta's commit message
v2021.7.16-beta (202107160)

- APKs are no longer hard-linked (crash due to SELinux).
- Data dir is /sdcard/Documents/vr25/migrator/.
- Exclude thumbnails, input method and adb settings from backups.
- General optimizations
- Installer prints changelog and other info.
- Inverted changelog order.
- Move option is -M to prevent confusion (formerly -m).
- Updated documentation & bundled terminal.

Merged pull request #5 from SebastianApel/master

  Enhancements:

  - Backup /data/media/0/Android/data/${pkg} [used for pictures by ch.threema.app]
  - And also restore it later into the correct location (including setting the correct user & perms)
  - Also backup widget configuration and roles of apps into _sysdata
  - Wifi Config is at a different location in Android 11 - make sure it's backed up
  - Better approach to restoring _sysdata (handle case where file does not exist [in some cases])

  Bugfixes:

  - In recovery mode, /data/user/0 does not exist (at least on my phone) - /data/data works
  - Apps were crashing without RestoreCon of /data/data/$pkg - added that

v2020.9.24-beta

Toggle v2020.9.24-beta's commit message
v2020.9.24-beta (202009240)

- Do not remount / rw if it's not tmpfs.
- Fixed backup import issue.

v2020.9.13-beta.1

Toggle v2020.9.13-beta.1's commit message
v2020.9.13-beta.1 (202009131)

- Enhanced system data backup and restore logic.
- General fixes & optimizations
- Parse "codePath" from /data/system/package.xml.
- Updated data migration tutorial.

Release Notes
  - Please test whether system data backup and restore work as expected.
  - This version fixes several issues that affected encrypted devices and Android 11 in particular.
  - Nothing was done in regards to the "MIUI 12" bootloop issue. The root cause is still unknown.

v2020.9.11-beta

Toggle v2020.9.11-beta's commit message
v2020.9.11-beta (202009110)

- "-m" option and M sub-option (as in -beM) to move hard link backups to /data/media/0/, so that they survive factory resets.
When launched without the -m (move) option, Migrator automatically moves hard link backups back to /data/migrator/local/, for convenience.
/data/migrator/ is inconvenient, but more private than /data/media/ and /data/media/0/.

- Auto-generate sample /sdcard/Download/migrator/packages.list.

- Backup/restore LineageOS-specific Android settings as well.

- copy README.md to /sdcard/Download/migrator/.

- Enforce Unix line endings (LF) in /data/migrator.conf before parsing it.
This ensures config files written on Windows Notepad or other CRLF-loving editors still work as expected.

- Exported backups are now imported to local/ as opposed to imported/ in /data/migrator/.
This means the "i" flag, as in -ri is no longer necessary/valid.

- Fixed: "migrator" executable inaccessible or not found.

- Removed long options (e.g., --backup --app) to reduce overhead.
Other performance enhancements were made on top of that.

- System data (D) is no longer hard-linked.
Regular copies are made instead.
Android dislikes otherwise.

- Two flags changed: A --> b (both (app and data)), E --> e (everything).

- Updated documentation.
This includes data migrator tutorial, flag mnemonics (e.g., -rb = restore both (app and data)) and more.
As hard as the text may seem, read the damn thing anyway and give me some feedback on it... please!

Release Notes
  - MIUI users who face the "reboot to fastboot" issue should refrain from flashing the zip for now.
  - I recommend extracting zip_file/migrator.sh and running it as is - until the cause of that issue is identified and eliminated.
  - Usage example: "su -c sh /path/to/migrator.sh -be"
  - An alias can be appended to Termux's .bashrc to save time and effort, e.g., alias M="su -c sh /sdcard/Download/migrator.sh".

v2020.8.28-beta

Toggle v2020.8.28-beta's commit message
v2020.8.28-beta (202008280)

Fixed compressed/encrypted export issues.

v2020.8.27-beta.1

Toggle v2020.8.27-beta.1's commit message
v2020.8.27-beta.1 (202008271)

Fixed restore "data_de only" not working (Android keyboard (AOSP) was affected).

Fixed settings restore issues on Nougat.

Force all apps to reregister for push notifications (Google Cloud Messaging)
-n|--notifications

Suppress unimportant errors when restoring system data (D).

v2020.8.27-beta

Toggle v2020.8.27-beta's commit message
v2020.8.27-beta (202008270)

Export backups to $base_dir/migrator_exported/ to prevent accidental data loss while auto-removing backups of uninstalled packages.

Filter out packages already backed up ("M -bn" or "M -b --new").

Misc safety patches

v2020.8.26-beta

Toggle v2020.8.26-beta's commit message
v2020.8.26-beta (202008260)

A comma can be used in place of "|" for regex alternation (e.g., "M -b faceb,instag,whatsa").

Added tips on using rsync in auto-backup config to sync backups over an ssh tunnel.

Read package names from list, with regex support (e.g., "M -b /path/to/file", "M -b --" (for /sdcard/Download/migrator/packages.list)).

Remove backups of uninstalled apps from export directory as well.

Don't overwrite the log file if its size is less than 2M.
Performance enhancements
Skip unistalled packages from <list>".
Unlike -rE, -bE now implies D too.
Updated documentation.
Updated bundled terminal (Magisk variant).

v2020.8.17-beta

Toggle v2020.8.17-beta's commit message
v2020.8.17-beta (202008170)

Enhanced auto-backup logic
General fixes & optimizations
More intuitive auto-backup config syntax
Updated backup automation info (config, Tasker script and more)

v2020.7.20-beta.1

Toggle v2020.7.20-beta.1's commit message
v2020.7.20-beta.1 (202007201)

General fixes & optimizations

Packages to be backed up can be read from a file (+ filepath or -v . + filepath).
The "-v ." construct is meant for excluding user apps.
However, excluded apps can still be overridden by the list following the + sign.

Updated encryption information.