"Fossies" - the Fresh Open Source Software Archive

Member "gammu-1.42.0/docs/manual/formats/backup.rst" (3 Oct 2020, 1671 Bytes) of package /linux/privat/gammu-1.42.0.tar.bz2:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "backup.rst": 1.41.0_vs_1.42.0.

Backup Format

The backup format is text file encoded in either ASCII or UCS-2-BE encodings.

This file use ini file syntax, see ini.


If you will backup settings to Gammu text file, it will be possible to edit it. It's easy: many things in this file will be written double - once in Unicode, once in ASCII. When you will remove Unicode version Gammu will use ASCII on restore (and you can easy edit ASCII text) and will convert it according to your OS locale. When will be available Unicode version of text, it will be used instead of ASCII (useful with Unicode phones - it isn't important, what locale is set in computer and no conversion Unicode -> ASCII and ASCII -> Unicode is done).

You can use any editor with regular expressions function to edit backup text file. Examples of such editors can be vim or TextPad which both do support regular expressions.

Remove info about voice tags


^Entry\([0-9][0-9]\)VoiceTag = \(.*\)\n



Change all numbers starting from +3620, +3630, +3660, +3670 to +3620


Type = NumberGeneral\nEntry\([0-9][0-9]\)Text = "\+36\(20\|30\|60\|70\)\n


Type = NumberMobile\nEntry\1Text = "\+3620

Change phone numbers type to mobile for numbers starting from +3620, +3630,... and removing the corresponding TextUnicode line


Type = NumberGeneral\nEntry\([0-9][0-9]\)Text = "\+36\([2367]0\)\([^\"]*\)"\nEntry\([0-9][0-9]\)TextUnicode = \([^\n]*\)\n


Type = NumberMobile\nEntry\1Text = "\+36\2\3"\n