Monthly Archives: June 2021

Using rsync to copy a big file

rsync -avS --progress -h fromPath/fileToCopy destPath/
Code language: Bash (bash)

Backup all data on Android phones

adb backup -shared -all -f ./Backupfilename.ab

Howto mount it on a computer
dd if=Backupfilename.ab skip=512 bs=128k iflag=nocache,skip_bytes oflag=nocache,append conv=notrunc of=OutfileimageEXT4.img

do this with all the ab files it creates, change the if= to the next file, leave the parameters as is.

sudo mount -t ext4 -o loop OoutfileimageEXT4.img /media/username/mountpoint_for_your_image

Github complains about private email address and cannot push

Find your email here:

Get your ID here

change globaly
git config –global “{ID}+{username}”

or only the spesific local repo
git config “{ID}+{username}”

git commit –amend –reset-author -m “message for log”
git push