File: android-deltas-sync/_etc/examples/all-operational-switches-off.txt

A self-contained console-interaction demo.  

Run with all interaction-related operational switches set to False (or 0) in 
configs: no fixer-script offer, pre-step pauses, or proxy-sync verifies are run.  
In this mode, the only points where input is required are when verifying removal
of existing content on the PC (not shown here), and prompting for manual copies 
of zipfiles on the phone.  PC commands were run in Terminal (on macOS), and phone 
commands in Termux (on Android 11).


#=================================================================================
# Initial copy, PC
#=================================================================================

$ A=~/Downloads/android-deltas-sync
$ cd $A

$ python3 initial-copy-part1-pc.py 
Android Deltas Sync 1.0

Copying:
from /Users/me/Desktop/temp/test-ads
to   /Volumes/SAMSUNG_T5/test-ads
zip  /Volumes/SAMSUNG_T5/test-ads.zip
logs /Users/me/Desktop/deltas-logs

START: Zipping content on PC
Zip create summary:
    Create finished: files=18, folders=7, symlinks=3, unknowns=0, crufts=0.

START: Unzipping content on proxy
Zip extract summary:
    Extract finished: files=18, folders=7, symlinks=3, unknowns=0.

START: Moving content zip to proxy

Finished - total elapsed time (h:m:s) = 0:0:0
See logs in "/Users/me/Desktop/deltas-logs", and run part 2 on your phone.


#=================================================================================
# Initial copy, phone
#=================================================================================

$ A=/sdcard/Download/android-deltas-sync
$ cd $A

$ python3 initial-copy-part2-phone.py
Android Deltas Sync 1.0

Copying:
from /sdcard/Android/data/com.termux/test-ads.zip
to   /sdcard/Android/data/com.termux/test-ads
logs /sdcard/Download/deltas-logs

Manually copy or move test-ads.zip
    from the root of the USB drive
    to   /sdcard/Android/data/com.termux
using any Android file-explorer app with suitable storage permissions.

Press enter/return here when the copy is finished...

START: Unzipping content on phone
Zip extract summary:
    Extract finished: files=21, folders=7, symlinks=0, unknowns=0.
Removing content zip from phone (remove manually from proxy as needed)

Running postcopy hooks

Finished - total elapsed time (h:m:s) = 0:1:13
See logs in "/sdcard/Download/deltas-logs".


#=================================================================================
# Sync changes, PC
#=================================================================================

$ python3 sync-changes-part1-pc.py 
Android Deltas Sync 1.0

Syncing:
from /Users/me/Desktop/temp/test-ads
to   /Volumes/SAMSUNG_T5/test-ads
zip  /Volumes/SAMSUNG_T5/DELTAS.zip
logs /Users/me/Desktop/deltas-logs

START: Creating PC~proxy deltas
Deltas summary:
    -------------------------------------------------------------------------------
    *Summary
    Compared    => files: 17, folders: 7, symlinks: 3
    Differences => samefile: 1, uniqueto: 1, uniquefrom: 1, mixedmode: 0
    Saved:
    files   => created: 1, deleted: 1, replaced: 1
    folders => created: 0, deleted: 0, replaced: 0
    -------------------------------------------------------------------------------
    Finished.

START: Zipping deltas
Zip create summary:
    Create finished: files=3, folders=1, symlinks=0, unknowns=0, crufts=0.
Moving deltas zip to proxy

START: Applying deltas to proxy
Mergeall summary:
    -------------------------------------------------------------------------------
    *Summary
    Compared    => files: 1, folders: 1, symlinks: 0
    Differences => samefile: 1, uniqueto: n/a, uniquefrom: 1, mixedmode: 0
    Changed:
    files   => created: 1, deleted: 1, replaced: 1
    folders => created: 0, deleted: 0, replaced: 0
    -------------------------------------------------------------------------------
    Finished.
Removing deltas folder from PC (keeping zip on proxy)

Finished - total elapsed time (h:m:s) = 0:0:0
See logs in "/Users/me/Desktop/deltas-logs", and run part 2 on your phone.


#=================================================================================
# Sync changes, phone
#=================================================================================

$ python3 sync-changes-part2-phone.py
Android Deltas Sync 1.0

Syncing:
from /sdcard/Android/data/com.termux/DELTAS.zip
to   /sdcard/Android/data/com.termux/test-ads
logs /sdcard/Download/deltas-logs

Manually copy or move DELTAS.zip
    from the root of the USB drive
    to   /sdcard/Android/data/com.termux
using any Android file-explorer app with suitable storage permissions.

Press enter/return here when the copy is finished...

START: Unzipping deltas on phone
Zip extract summary:
    Extract finished: files=3, folders=1, symlinks=0, unknowns=0.

START: Applying deltas to phone
Mergeall summary:
    -------------------------------------------------------------------------------
    *Summary
    Compared    => files: 1, folders: 1, symlinks: 0
    Differences => samefile: 1, uniqueto: n/a, uniquefrom: 1, mixedmode: 0
    Changed:
    files   => created: 1, deleted: 1, replaced: 1
    folders => created: 0, deleted: 0, replaced: 0
    -------------------------------------------------------------------------------
    Finished.
Removing deltas folder from phone
Removing deltas zip from phone (remove manually from proxy as needed)

Running postcopy hooks

Finished - total elapsed time (h:m:s) = 0:0:28
See logs in "/sdcard/Download/deltas-logs".



[Home page] Books Code Blog Python Author Train Find ©M.Lutz