From dd1073cd6ee3442c65a457e1683e4f162e264801 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 13 Aug 2022 20:18:11 -0400 Subject: [PATCH] msync: do not delete backups from mobile --- src/.local/bin/msync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/.local/bin/msync b/src/.local/bin/msync index 063839f..1dfd787 100755 --- a/src/.local/bin/msync +++ b/src/.local/bin/msync @@ -43,6 +43,10 @@ impf () { find "$1" -mindepth 1 -maxdepth 1 | xargs -I{} mv "{}"/ "$2" } +impf_cp () { + find "$1" -mindepth 1 -maxdepth 1 | xargs -I{} cp -r "{}"/ "$2" +} + exp () { find "$1" -type f | xargs -I{} cp -n "{}" "$2" } @@ -84,7 +88,7 @@ case "$ACTION" in imp "$ROOT/Documents/contacts.vcf" $DEST imp "$ROOT/infbk/" $DEST - impf "$ROOT/.SeedVaultAndroidBackup/" $DEST/seedvault/ + impf_cp "$ROOT/.SeedVaultAndroidBackup/" $DEST/seedvault/ ;; HELP)