Content tagged as backup

Mobile phone addressbook backup

mobilephone-pda

This is a small bashscript i wrote to backup my mobile phone addressbook into LDIF format to import in LDAP. It uses gnokii to dump the phone/sim addressbooks.

1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
 
OUTFILE="./addressbook_$(date +"%Y%m%d-%H%M%S").ldif"
ERRLOG="/tmp/gnokii-backup-errlog-$(pwgen 10 1).log"
 
echo > "$OUTFILE"
 
echo -n "Backupping SIM memory ... "
gnokii --getphonebook SM 1 end -l  >> "$OUTFILE" 2> "$ERRLOG" && echo "[ DONE ]" || echo "[FAILED]"
cat "$ERRLOG" | sed "s/^/  /g"
rm "$ERRLOG"
 
echo -n "Backupping PHONE memory ... "

Drupal database backup

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
 
"""
 
    MySQL Database Backupper
    Copyright (C) 2008  Samuele ~redShadow~ Santi - http://hackzine.org
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Archiver Bash Script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
 
#
#     archive.sh - A fast archiver, useful for making snapshots
#     Copyright (C) 2008  Samuele ~redShadow~ Santi
#     http://hackzine.org
#
#     This program is free software: you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation, either version 3 of the License, or
#     (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY 

Who Am I?

~redShadow~ A.K.A. Samuele Santi is an Italian Open Source developer, currently working as a freelance developer, mainly in the web applications sector. Favourite programming languages: PHP and, of course, Python!

2v (1) cars (1) blender (3) C++ (2) awstats (3) audio (1) como lake rovers (1) caos (1) documentation (2) algorythms (1) apache (1) debug (1) e-mail (2) doku (1) cocktails (1) alcool (1) 3d (3) address book (2) aircrack (1) circuits (1) debian (1) code (3) camera mia (1) apt (1) Drupal Forms (1) archive (1) cryptography (1) cartoons (1) citroen (1) arduino (1) bash (11) development (11) blogroll (7) Drupal (21) aoe (1) curl (1) backup (3) dmcrypt (1) database (3) contact manager (1)