Allows to add arbitrary files and dconf keys to Sailfish OS backups. Requires Sailfish OS 3.2 or greater.
Important: do not uninstall MyBackup versions 1.0.5 and older. Due to what seems to be a bug in busybox, the uninstall script can end up doing rm -fr / on some versions of Sailfish OS. Update the app prior to uninstalling it - update is safe, it doesn't run that script.
Sailfish OS applications can declare what they need to be added to the backup by providing [X-HarbourBackup] section in their desktop file, which looks like this:
[X-HarbourBackup] BackupPathList=.local/share/foil/:Documents/FoilAuth/ BackupConfigList=/apps/harbour-foilauth/
BackupPathList is a colon-separated list of files and directories to backup. Paths are relative to the home directory. Directory names end with a slash and are copied recursively. Absolute paths are ignored.
BackupConfigList is a colon-separated list of dconf keys and groups. Similarly to directories, group names end with a slash and are saved and restored recursively. There is one important difference, though - the existing contents of dconf groups is lost during restore and is completely replaced by whatever was saved in the backup.
Source code: https://github.com/monich/harbour-mybackup
Translations are welcome in the form of GitHub pull requests.
Stay safe, backup often!
Comments
eson
Sun, 2021/01/10 - 10:59
Permalink
Thanks a lot!
Pages