[Tasker Tips & Tricks] Minfred:
Hi dadnammit,

i would like to use your Recipe. It seems to be the perfect solution to automatically backup my photos and whatsapp-folders to my NAS.

I have installed "FolderSync Pro, Tasker, Titanium Backup" and granted root-permissions. The mobile is an Sony Xperia Z3C with LineageOS 14.

The manually started foldersync of my folderpair DCIM/Camera to Remote-folder works.

Unfortunately, the pollFolderSyncDb-task returns always 0|dberr.

It seems that it can't open the database or use the sqlite3!?

My first thought was about no access to the root-partition /data/...

edit: Booting in the TWRP-reovery, i can see every single folder and the files mentioned.

edit2: Running a test-task: "run shell: touch /data/data/test.log with using root" creates the file without problems.

So this is not the issue.

edit3: Next try, same procedure on a rootet Galaxy S2 running LOS14. Same failure. =(

Would it help to see a log-file provided by tasker?

20170713 08.29.07 E Start ID0:0.0 TaskService
20170713 08.29.08 T Running ID9 Test
20170713 08.29.09 T Running ID7:2 Folder Sync Example
20170713 08.29.09 A OK ID9.1 Test.Perform Task, Folder Sync Example
20170713 08.29.09 T ExitOK ID9 Test
20170713 08.29.09 A OK ID7:2.1 Folder Sync Example.Notify
20170713 08.29.09 A OK ID7:2.2 Folder Sync Example.Var Set, %max_attempts=3
20170713 08.29.09 T Running ID5:3 pollFolderSyncDb
20170713 08.29.09 A OK ID7:2.3 Folder Sync Example.Perform Task, pollFolderSyncDb
20170713 08.29.09 A OK ID5:3.1 pollFolderSyncDb.Var Set, %fpid=.
20170713 08.29.09 A OK ID5:3.2 pollFolderSyncDb.Var Set, %timeout=0
20170713 08.29.09 A OK ID5:3.3 pollFolderSyncDb.If
20170713 08.29.09 A OK ID5:3.4 pollFolderSyncDb.Var Set, %fpid=.
20170713 08.29.09 A IfFail ID5:3.5 pollFolderSyncDb.Stop
20170713 08.29.09 A OK ID5:3.6 pollFolderSyncDb.NB: 1:59:20
20170713 08.29.09 A OK ID5:3.7 pollFolderSyncDb.End If
20170713 08.29.09 A OK ID5:3.8 pollFolderSyncDb.Var Set, %timeout=7160
20170713 08.29.09 A OK ID5:3.9 pollFolderSyncDb.Var Set, %now=1499927349
20170713 08.29.09 A OK ID5:3.10 pollFolderSyncDb.Var Set, %max_exp=7
20170713 08.29.09 A OK ID5:3.11 pollFolderSyncDb.Var Set, %sqlite3=/data/data/com.ker..
20170713 08.29.09 A OK ID5:3.12 pollFolderSyncDb.Var Set, %dbfile=/data/data/dk.taci..
20170713 08.29.09 A OK ID5:3.13 pollFolderSyncDb.Test File, %size=1
20170713 08.29.09 A IfFail ID5:3.14 pollFolderSyncDb.Var Set, %dberr=%dberr
20170713 08.29.09 A OK ID5:3.15 pollFolderSyncDb.If
20170713 08.29.09 A OK ID5:3.16 pollFolderSyncDb.Var Clear, %size=%size
20170713 08.29.09 A OK ID5:3.17 pollFolderSyncDb.Test File, %size=1
20170713 08.29.09 A IfFail ID5:3.18 pollFolderSyncDb.Var Set, %dberr=%dberr
20170713 08.29.09 A OK ID5:3.19 pollFolderSyncDb.End If
20170713 08.29.09 A OK ID5:3.20 pollFolderSyncDb.If
20170713 08.29.09 A OK ID5:3.21 pollFolderSyncDb.Run Shell, %dbreturn=%dbreturn, %dberr=%dberr
20170713 08.29.09 A IfFail ID5:3.22 pollFolderSyncDb.Var Set, %dberr=%dberr
20170713 08.29.09 A OK ID5:3.23 pollFolderSyncDb.End If
20170713 08.29.09 A OK ID5:3.24 pollFolderSyncDb.If
20170713 08.29.09 A OK ID5:3.25 pollFolderSyncDb.Run Shell, %dbreturn=%dbreturn, %dberr=%dberr
20170713 08.29.09 A OK ID5:3.26 pollFolderSyncDb.Var Set, %dberr=Expected folderpai..
20170713 08.29.09 A OK ID5:3.27 pollFolderSyncDb.End If
20170713 08.29.09 A OK ID5:3.28 pollFolderSyncDb.If
20170713 08.29.09 A OK ID5:3.29 pollFolderSyncDb.Notify
20170713 08.29.09 A OK ID5:3.30 pollFolderSyncDb.End If
20170713 08.29.09 A OK ID5:3.31 pollFolderSyncDb.Return
20170713 08.29.09 T ExitOK ID5:3 pollFolderSyncDb
20170713 08.29.09 A OK ID7:2.4 Folder Sync Example.If
20170713 08.29.09 A OK ID7:2.5 Folder Sync Example.Notify
20170713 08.29.09 A OK ID7:2.6 Folder Sync Example.Goto
20170713 08.29.09 A OK ID7:2.22 Folder Sync Example.end
20170713 08.29.09 T ExitOK ID7:2 Folder Sync Example
20170713 08.29.16 E Stop ID0:0.0 TaskService

Hopefully you can help me a little bit,

Kind regards,

Minfred