From 89625307107fe970a5a00a27d7ac6eee32b75502 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 28 Jun 2022 21:16:57 -0400 Subject: [PATCH] msync: Setup mobile backups --- src/.local/bin/msync | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/.local/bin/msync b/src/.local/bin/msync index 523f59b..30d373e 100755 --- a/src/.local/bin/msync +++ b/src/.local/bin/msync @@ -15,11 +15,15 @@ MNT="$HOME/quar/mnt" ROOT="$MNT/Internal shared storage" imp () { - find "$1" -type f | xargs -I{} mv {} "$2" + find "$1" -type f | xargs -I{} mv "{}" "$2" +} + +impf () { + find "$1" -mindepth 1 -maxdepth 1 | xargs -I{} mv "{}"/ "$2" } exp () { - find "$1" -type f| xargs -I{} cp -n {} "$2" + find "$1" -type f | xargs -I{} cp -n "{}" "$2" } if [ $ACTION = PUSH ] @@ -45,4 +49,7 @@ then imp "$ROOT/Recordings/Sound records/" ~/quar imp "$ROOT/Documents/dr" ~/quar + + imp "$ROOT/Documents/contacts.vcf" ~/quar + impf "$ROOT/.SeedVaultAndroidBackup/" ~/quar/seedvault/ fi