msync: Setup mobile backups

This commit is contained in:
dogeystamp 2022-06-28 21:16:57 -04:00
parent 40e7a002af
commit 8962530710
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

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