Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull all /data directory #29

Open
mcanonic opened this issue Oct 2, 2018 · 2 comments
Open

pull all /data directory #29

mcanonic opened this issue Oct 2, 2018 · 2 comments

Comments

@mcanonic
Copy link

mcanonic commented Oct 2, 2018

Hi,
by using adb-sync --reverse /data/ noAction/
I want to download all files from /data, but I've got an error:
adb: error: failed to copy '/data/var/run/netns/router' to 'noAction//var/run/netns/router': remote read failed: Invalid argument
Interrupted-Pull-Delete: noAction//var/run/netns/router
Total: 5 KB/s (81791 bytes in 14.811s)
Traceback (most recent call last):
File "../../adb-sync/adb-sync", line 774, in
main(*sys.argv)
File "../../adb-sync/adb-sync", line 769, in main
syncer.PerformCopies()
File "../../adb-sync/adb-sync", line 585, in PerformCopies
self.num_bytes += s.st_size
File "../../adb-sync/adb-sync", line 474, in exit
fs.unlink(name)
OSError: [Errno 2] No such file or directory: 'noAction//var/run/netns/router'

Two questions:

  • does this error interrupt the sync?
  • if yes, can I set adb-sync to go on anyway?
    Thanks,
    M
@divVerent
Copy link
Contributor

A --keep-going flag, probably... seems like a good idea. Will think of that.

@Venryx
Copy link

Venryx commented Jul 22, 2019

For others wanting a way to have adb-sync "keep going" if it hits an error for a file, just put a try-catch (or try-except, rather) wrapper around the code within the for loop in PerformCopies().

Would still be nice to have a command-line flag for this behavior, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants