Goal:
I am looking at creating an automated solution for saving Android application backups directly to an rclone mounted drive with vfs=writes. I need some guidance at interpreting the debug logs.
Workflow:
The oandbackup app takes an Android application (data and akp), bundles it into a compressed, encrypted archive then stores the results. I am exploring the feasibility of configuring the app to backup directly to an rclone remote.
It seems to be working however I am unsure about which file are being written to the vfs versus which files are being written to the remote.
If the intermediate work files (before the final encrypted output) are written to the vfs, uploaded to the remote remote and then deleted, this would not be a good workflow. If however the intermediate files are written to the vfs in memory temporarily then deleted and only the resulting output is uploaded to the remote it would be an ideal (and awesome) rclone application
I have been reading the logs of a test operation and trying to figure out what is being written to the vfs file system and what is being written to the remote.
For example, this seems evident:
shared_prefs: Added virtual directory entry vDel: "file.xml"
- f
ile.xml: vfs cache: removed cache file as file deleted
However, are these lines referring to uploading to the vfs or uploading to the remote?
file.xml: vfs cache: queuing for upload in 5s
file.log: vfs cache: upload succeeded try #1
vfs cache: cancelling writeback (uploading false) 0xb48f87d0 item 71
If file.log: vfs cache: upload succeeded try #1
means it uploaded this file to the remote, when I look I don't see it there. Was it deleted, if so what log line would indicates a file was deleted from a remote?
Is this telling me rclone copied the file to vfs or to the remote:
file.xml: Copied (new)
I also see this error commonly, however the end result is that the output looks like it is successfully uploaded, perhaps it tries again?
ERROR : path/file.xml: vfs cache: failed to _ensure cache EOF
DEBUG : path/file/: vfs cache: failed to _ensure cache EOF is not out of space
I guess I am wondering are all the vfs operations marked with "vfs" or can something like this:
file.xml: Copied (new)
refer to copying files to the vfs or to the remote.
The end result:
This appears to be working. When I look at the remote I see the expected encrypted output of the application, I never see any of the intermediary files. I do not know if they were however uploaded and then deleted afterwards which is what I would like to try to avoid.
Any guidance would be greatly appreciated.