From cccccbcba501dbb81229640c94b4714646dfc295 Mon Sep 17 00:00:00 2001
From: Silvio Rhatto <rhatto@riseup.net>
Date: Sat, 8 Jul 2017 14:33:51 -0300
Subject: [PATCH] Smartphones: backups: hardlinks

---
 research/smartphone.mdwn | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

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
-- 
GitLab