From: Silvio Rhatto Date: Sat, 8 Jul 2017 17:33:51 +0000 (-0300) Subject: Smartphones: backups: hardlinks X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cccccbcba501dbb81229640c94b4714646dfc295;p=blog.git Smartphones: backups: hardlinks --- diff --git a/research/smartphone.mdwn b/research/smartphone.mdwn index c076f64..8a22087 100644 --- a/research/smartphone.mdwn +++ b/research/smartphone.mdwn @@ -126,11 +126,17 @@ Backups Usaremos o [adb-sync](https://github.com/google/adb-sync) e o [adb-export](https://github.com/snatik/adb-export): - # Parameters + # Parâmetros date="`date +%Y%m%d`" base="/storage/emulated/0" - mkdir $date && cd $date && mkdir files + mkdir $date && cd $date + + # Se você tiver um backup antigo e quiser aproveitá-lo com hardlinks: + cp -alf /path/to/previous/backup/files files + + # Garante a existência da pasta de arquivos + mkdir -p files # Contatos # Exportar também para .vcf direto do aplicativo de contatos