msync: do not delete backups from mobile

This commit is contained in:
dogeystamp 2022-08-13 20:18:11 -04:00
parent 41193201ac
commit dd1073cd6e
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -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)