Migrating data and apps to a new device with adb (LineageOS 17)
This article describes how you can migrate your apps and data from your old to your new smartphone (LineageOS 17.1) using adb pull/push.
Backing up your android based Fairphone FP2 using ssh and rsync without root access
SSHelper configuration Install SSHelper from google play store or from its homepage here:
Disable password logins Enable Zeroconf broadcast Enable log display server Enable clipboard display server Prevent standby while running You have to let open the SSHelper screen on the phone. In my case after screen is off, connection dies.
SSH configuration Check connection to your device:
$ ssh <android-ip> -p2222 u0_a115@FP2:/data/data/com.arachnoid.sshelper/home $ exit Create a specific ssh key for using with your device:
Encrypted gpg backup of /etc and mysql database
Import your backup gpg key into root’s gnupg keystore.
mkdir -p /var/backup cat << EOF >>/etc/cron.daily/backup #!/bin/bash #set -x umask 077 GPG_KEY=<gpg key> TMPDIR=/tmp USER=root DSTDIR=/var/backup/$HOSTNAME DBFILE=
hostname
.sql BACKUP_DIRS='/etc /var/spool/cron' # backup piwik mysql database mysqldump –all-databases \ –events –single-transaction –routines >${TMPDIR}/${DBFILE} && \ chown ${USER}:${USER} ${TMPDIR}/${DBFILE} && \ cat ${TMPDIR}/${DBFILE} | gpg –no-tty –encrypt \ -r ${GPG_KEY} - >${DSTDIR}/${DBFILE}.gpg" && \ rm ${TMPDIR}/$DBFILE || exit 3 tar cfz ${TMPDIR}/${HOSTNAME}.tgz $BACKUP_DIRS &>/dev/null && \ chown ${USER}:${USER} ${TMPDIR}/${HOSTNAME}.
Backup für Desktop Linux mit Sync (Unison) und Snapshots (BTRFS) howto
Konzept 2 Workstations (WS) mit Sync statt 1 WS plus USB Harddisk
Hardware Redundanz
Beide Geräte lassen sich nutzen
Die Technologien für Sync (Unison) und Snapshot (BTRFS) sind austauschbar.
Nur ausgewählte Verzeichnisse innerhalb von /home/user/ werden mit Unison in Sync gehalten.
Jede WS implementiert unabhängig Revisionssicherheit mit Snapshots (hier mit BTRFS).
Zeit unabhängige Snapshots: Es kann sein, dass ein Snapshots auf WS1 nicht die selben Daten enthält, wie ein Snapshot auf WS2.