aboutsummaryrefslogtreecommitdiff
path: root/research
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-07-08 14:33:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-07-08 14:33:51 -0300
commitcccccbcba501dbb81229640c94b4714646dfc295 (patch)
tree655ab69edd87c416d26888bd1f54b837be97af88 /research
parentac9a426961767ead7d961b983f82029a40d8da01 (diff)
downloadblog-cccccbcba501dbb81229640c94b4714646dfc295.tar.gz
blog-cccccbcba501dbb81229640c94b4714646dfc295.tar.bz2
Smartphones: backups: hardlinks
Diffstat (limited to 'research')
-rw-r--r--research/smartphone.mdwn10
1 files 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