aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xandroid-backup-mtp19
-rwxr-xr-xandroid-push6
2 files changed, 19 insertions, 6 deletions
diff --git a/android-backup-mtp b/android-backup-mtp
index 0cf04e6..5e7823a 100755
--- a/android-backup-mtp
+++ b/android-backup-mtp
@@ -31,8 +31,8 @@ if [ -z "$PROFILE" ]; then
echo ""
echo "1. Log into the profile on the phone."
echo "2. Export the contacts somewhere like Backups/Contacts/contacts.vcf."
- echo "3. Run a local backup to the internal storage (to the .SeedVaultAndroidBackup folder)."
- echo "4. Run Signal and Molly backups (to the Backups folder)."
+ echo "3. Run Signal and Molly backups (to the Backups folder)."
+ echo "4. Run a local backup to the internal storage (to the .SeedVaultAndroidBackup folder)."
echo "4. Mount the profile folder in the computer."
echo "5. Sync the profile in the respective folder."
echo ""
@@ -49,7 +49,20 @@ for tool in $COMMANDS; do
fi
done
-# Backup
+# Mount
go-mtpfs $SHARED &
+
+# Check if mount was successful
+if [ "$?" != "0" ]; then
+ echo "$BASENAME: error: unable to mount profile $PROFILE from phone $PHONE"
+ exit 1
+fi
+
+# Wait a bit
+sleep 1
+
+# Sync
time rsync -av --delete $EXCLUDES $SHARED/ $SYNCED/
+
+# Umount
fusermount -u $SHARED
diff --git a/android-push b/android-push
index 1eafa10..56a4278 100755
--- a/android-push
+++ b/android-push
@@ -16,9 +16,9 @@ if [ -z "$DEST" ]; then
echo "Examples"
echo ""
echo "android-push /mylocal/music/ Music/"
- echo "androis-pull DCIM/Camera /mylocal/camera"
- echo "androis-pull Music /mylocal/music"
- echo "androis-pull Ringtones /mylocal/ringtones $ANDROID_BASE"
+ echo "android-pull DCIM/Camera /mylocal/camera"
+ echo "android-pull Music /mylocal/music"
+ echo "android-pull Ringtones /mylocal/ringtones $ANDROID_BASE"
exit 1
fi