Dear Corey, I was unable to copy the rsync file using terminal/adb.
So, instead, I just used Root Explorer to copy the 'rsync' file to /
system/xbin/rsync
Next, I edited your py script to suit my server add. Here is the
outcome :
import android
import os
droid = android.Android()
droid.wakeLockAcquireDim()
retcode = os.system("rsync -av /sdcard/Apk 192.168.0.5::backup/ --size-
only --stats --progress --delete-excluded")
if retcode != 0:
droid.notify('Rsync Process Failed', 'Return code: ' +
str(retcode))
else:
droid.notify('Rsync Process Succeeded', 'Sync process complete.
Return code: ' + str(retcode))
droid.wakeLockRelease()
I saved the above script in sl4a as python script and run it. I get
error 'rsync : permission denied (return code 32256)
I think that my remote path is incorrect. So, by running 'ls' on my
cygwin folder on my PC, the list of folders are :
bin
dev
etc
home
lib
tmp
usr
var
So, for me to point to a remote folder, where do I place it into.
Currently i'm using 'home' folder. But im not sure if it is correct.
Please care to explain. Thank you.
On Jun 16, 9:26 pm, Corey Z <
czua...@gmail.com> wrote:
> I'm assuming that you're rooted if you can remount your system partition (if
> you're not, then that's an another issue entirely).
>
> If you are rooted properly and can remount your system partition without
> error, try the next steps.
>
> 1. Check to see if you have an /xbin folder by first getting super user
> access ("su" first) in a terminal and then entering "cd /system/xbin"
> 2. If you get an error about no such file/folder, mount r/w and enter
> "mkdir /system/xbin"
> 3. Try a different method of copying by entering "cat /sdcard/rsync >
> /system/xbin/rsync"
> 4. If that works, you can keep following the original instructions I