g_it/mobisync
Archived
1
0
Fork 0

Changed some sync folders

This commit is contained in:
g* 2021-06-16 20:29:43 +02:00
commit 210ac5fb47
5 changed files with 279 additions and 6 deletions

Binary file not shown.

View file

@ -50,11 +50,12 @@ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - >> $LOG # Prints line
# Writes the header for the log file: Program, Version number, Date and Line.
{ echo "mobisync 12.1"; echo "Log: " `date`; line; } >> $LOG
# Syncing Music from the computer.
# Syncing images and video on device to the Downloads folder on computer.
{
adb-sync --delete --exclude .DS_Store ~/Music/ "/sdcard/Music/";
adb shell find "/sdcard/DCIM/" -type f -iname \*.jpg -o -type f -iname \*.mp4 -o -type f -iname \*.dng | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done;
adb shell find "/sdcard/Pictures/" -type f -iname \*.jpg -o -type f -iname \*.mp4 -o -type f -iname \*.dng | tr -d '\015' | while read line; do adb pull "$line" $DOWNLOADS; done;
} >> $LOG
catcher Music
catcher Images
line
# Syncing documents on device to the Downloads folder on computer.
@ -83,6 +84,13 @@ line
catcher Backup
line
# Syncing Music from the computer.
{
adb-sync --delete --exclude .DS_Store ~/Music/ "/sdcard/Music/";
} >> $LOG
catcher Music
line
# Notification that the sync is over.
printf "Syncing is complete. END" >> $LOG
line