Matt
Action 1 should be %files instead of %file. Action 4 should be from %file instead of Tasker/autobackup/%files.
Matt
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/j9dpU0ySDEs/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Matt
Hi matt,
Here's my action file
<TaskerData sr="" dvi="1" tv="4.0u1m">
<Task sr="task17">
<cdate>1367645399257</cdate>
<edate>1367660318718</edate>
<id>17</id>
<nme>Seperate From Folder</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>412</code>
<Str sr="arg0" ve="3">Tasker/autobackups/</Str>
<Str sr="arg1" ve="3">*.xml</Str>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3">%file</Str>
</Action>
<Action sr="act1" ve="3">
<code>39</code>
<Str sr="arg0" ve="3">%file</Str>
<Str sr="arg1" ve="3">%files</Str>
</Action>
<Action sr="act2" ve="3">
<code>115</code>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">%file</Str>
<Str sr="arg2" ve="3">%filename</Str>
</Action>
<Action sr="act3" ve="3">
<code>400</code>
<Str sr="arg0" ve="3">Tasker/autobackups/%files</Str>
<Str sr="arg1" ve="3">Tasker/Upload/%filename.%DATE.</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act4" ve="3">
<code>40</code>
</Action>
</Task>
</TaskerData>
Thank you
Can you export the relevant profile(s)/task(s)? Long-press a profile or task name and select export -> description to clipboard and paste in a reply here.
Matt
Sorry Matt...
Here it is...
Seperate From Folder (17)
A1: List Files [ Dir:Tasker/autobackups/ Match:*.xml Include Hidden Files:Off Variable:%file ]
A2: For [ Variable:%file Items:%files ]
A3: Test [ Type:File Name Data:%file Store Result In:%filename ]
A4: Move [ From:Tasker/autobackups/%files To:Tasker/Upload/%filename.%DATE. Use Root:Off ]
A5: End For
Please export the DESCRIPTION, not XML.
Matt
--
Matt
Hello Matt,
Looks like I am not a good student, am I? Hahaha...
Well, I did change the steps that you pointed out yesterday... But still error comes out like this:
Test: file not found:/storage/sdcard0/%files instead of %file
Oh... This is bugging me as well... Does the phone need yo be rooted?
Sorry for the silly question.
Thank you
It doesn't look like you made the changes I suggested in my first post.
Matt
Seperate From Folder (17)
A1: List Files [ Dir:Tasker/autobackups/ Match:*.xml Include Hidden Files:Off Variable:%files ]
A2: For [ Variable:%file Items:%files ]
A3: Test [ Type:File Name Data:%file Store Result In:%filename ]
A4: Move [ From:%file To:Tasker/Upload/%filename.%DATE. Use Root:Off ]
A5: End For
Yes Bob,
Correct me if I'm wrong...
I use list file to show all xml files in the sub dir.
I tried to copy one of the xml file into the parent which is autobackups.
The problem still exists.
Thank you
I think the reason for the error message is because there are no .xml files in the directory. Tasker creates a new folder in this directory for each new backup. The .xml files are in these subfolders. The subfolder names consist of the date and time. Inside each of these folders is one file named userbackup.xml. Since there are no xml files found the %file never has a value and that leads to the error message.
Seperate From Folder (12)
A1: List Files [ Dir:Tasker/autobackups Match:user* Include Hidden
Files:Off Variable:%File ]
A2: For [ Variable:%Thisitem Items:%File() ]
A3: Variable Set [ Name:%Newfilename
To:/storage/sdcard0/Tasker/Upload/userbackup.xml.%DATE Do Maths:Off
Append:Off ]
A4: Copy File [ From:%Thisitem To:%Newfilename Use Root:Off ]
A5: End For