msync: Setup mobile backups
This commit is contained in:
parent
40e7a002af
commit
8962530710
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user