GAMMU-BACKUP(5)

πŸ’Ύ NAME

gammu-backup β€” the backup file format for gammu(1), bestie. Yes it's a file-format page, no it is not boring, stay with me here.

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

This file uses ini file syntax β€” peep the INI file format (#ini) if you need the deets. 🫢


πŸ“ EXAMPLES

Okay so here's the actually slay part: if you back up your settings to a Gammu text file, you can literally just edit it. It's easy, fr fr β€” lots of things in this file get written twice, once in Unicode and once in ASCII. When you remove the Unicode version, Gammu will use ASCII on restore (and you can easily edit that ASCII text, cute) and it will convert it according to your OS locale. When a Unicode version of the text is available, it gets used instead of ASCII β€” super useful with Unicode phones, because it isn't important what locale is set on the computer, and no conversion Unicode β†’ ASCII and ASCII β†’ Unicode is done at all. Periodt. ✨

You can use any editor that has a regular expressions function to edit the backup text file. Examples of such editors are vim (http://www.vim.org/) and TextPad (http://www.textpad.com/) β€” both of them do support regular expressions. Obsessed, honestly. πŸ’…

πŸŽ€ Remove info about voice tags

Find:

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

Replace:

<blank>

πŸ¦‹ Change all numbers starting from +3620, +3630, +3660, +3670 to +3620

Find:

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

Replace:

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

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

Find:

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

Replace:

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

🌸 See also:

  • Converting file formats (#converting-formats)

πŸ‘‘ Author

Michal ČihaΕ™ <michal@cihar.com>


2009-2015, Michal ČihaΕ™ <michal@cihar.com>


And that's the whole vibe, bestie β€” this iconic little page is version 1.45.0, dated Sep 16, 2026, and it lives in GAMMU-BACKUP(5). Go forth and back up your stuff. πŸ¦‹πŸŽ€πŸ’œ

πŸ“¦ where this page comes from