yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] iPAQ 6515a User:
This is correct the profile is set to every 3 days, then even if you run it everyday, it will perform the backup every 3 day

[MENTION=3306843]kantjer[/MENTION]

OpenRecoverScript has a parameter to set TWRP settings: value

but do not know how to set it so the size check is disable.

It is important, as if you have only 5GB left, it is enough for a compressed nandroid, but not enough for the uncompressed one, TWRP will stop if the setting is not disabled. It will see the total backup

size needed (uncompressed of course) is, let's say, 9GB but free space is only 5GB, then is stops. That is why I removed the option in TWRP, but it works only if I boot directly into recovery, if using openrecoveryscript that setting is set to default (ie. checks the free space size)
[Android Apps and Games] rf69:
Awesome, thanks.. :cool:
[Android Apps and Games] kantjer:
This should do it:

set tw_disable_free_space 1

https://github.com/omnirom/android_bootable_recovery/blob/android-7.0/variables.h
[Android Apps and Games] iPAQ 6515a User:
And where should I insert it? I am completely flabbergasted, lol
[Android Apps and Games] kantjer:
I think like this
[Android Apps and Games] kantjer:
Q1, try this (by using the -p option the command won't trow an error if the folder already exist)

Q2, I have added a dir space check and testing it now
[Android Apps and Games] kantjer:
I found an issue with my test profiles

Due to the changed date format the retention task is now deleting the wrong backup

I changed the date format so I hope that fixes it :fingers-crossed:

I also changed a few other small things to make the script easier to read.

The free space check I set in a separate Task that is being called from the main nandroid profile, also to make it more manageable.
[Android Apps and Games] iPAQ 6515a User:
Where can we find the scripts?

---------- Post added at 11:57 AM ---------- Previous post was at 11:21 AM ----------

Not working ;(
[Android Apps and Games] kantjer:
https://www.androidfilehost.com/?fid=385035244224394379

try running the "TWRP disk space test" first

When it's done you should see 2 new variables in the vars tap, %Size_available and %Size_needed

If you have those the script is working
[Android Apps and Games] kantjer:
My bad, should be:

set tw_disable_free_space 1
[Android Apps and Games] iPAQ 6515a User:
Tried that before with the same result, the TWRP stopped and phone stayed on in recovery.

Will try the space test scripts....
[Android Apps and Games] kantjer:
I have been reading up on this and found " Commands are executed in order, top to bottom"

So in order to make it work in your situation the "set tw_disable_free_space 1" line should be above the backup line
[Android Apps and Games] iPAQ 6515a User:
Disk space test task error

07.58.34/Variables doreplresult: |df %BUdir1 | grep fuse| -> |df /storage/7E30-14E5/TWRP/BACKUPS/4ce5b808 | grep fuse|
07.58.34/Variables doreplresult: |df %BUdir1 | grep fuse| -> |df /storage/7E30-14E5/TWRP/BACKUPS/4ce5b808 | grep fuse|
07.58.34/E Run Shell: %disk_space_free -> %disk_space_free
07.58.34/E Run Shell: ->
07.58.34/E Run Shell: ->
07.58.34/Shell runBackground df /storage/7E30-14E5/TWRP/BACKUPS/4ce5b808 | grep fuse root: false timeout: -1
07.58.34/Shell start process-thread ID 108
07.58.34/E add wait type Shell1 time 2147483647
07.58.34/E add wait type Shell1 done

---------- Post added at 08:18 AM ---------- Previous post was at 08:02 AM ----------

It is working !!!

Ta
[Android Apps and Games] kantjer:
I was expecting that

Please add a line above the current line 10

check the %Test var

remove the test line and change "fuse" in line 10 to whatever it needs to be for your phone
[Android Apps and Games] iPAQ 6515a User:
A question which version of tasker are you using?

As to your tips, thank you but unfortunately I am a layman and have no clue what fuse is, where %test var is, etc. Could you guid me step by step?

TIA
[Android Apps and Games] kantjer:
I'm using the last version Google Play
[Android Apps and Games] iPAQ 6515a User:
First of all I was running it in the beginner mode, but now it looks like yours.

So, back to Shell BUdir

line 9 is df% BUdir1 | grep fuse

line 10 df% BUdir1

line 11 %disk_space_free

With this I get the same error, I bellieve it must be 'fuse' ..... what is it, what should i replace it with? The name of my backup folder? my ext card?

As to the test var, shall i create it in vars tab? so what is 'fuse'?

Sorry, but like I said I have no clue here.

Ta
[Android Apps and Games] kantjer:
Check my post #102 again

Add the line to the check disk space task like I posted (run "df %BUdir1" and store output in "%Test" make sure you use a capital T

Then post the output of variable %Test (should look like something in my second screenshot only I expect your storage to be named something else than my /dev/fuse
[Android Apps and Games] iPAQ 6515a User:
I suppose line 9 is redundant (it stops the task, so I "froze" it)

This is the error

and the variable %Test
[Android Apps and Games] kantjer:
I can't see the screenshots. They won't open
[Android Apps and Games] iPAQ 6515a User:
Here they are
[Android Apps and Games] rf69:
I'm getting the following error, if you can tell me what's wrong.?

I do not run a backup, i only run the Get Free Space manually to test.
[Android Apps and Games] rf69:
I see now that it happens because the backup directory is empty, but how can i avoid this..?

Thanks in advance :cool:
[Android Apps and Games] kantjer:
the free disk space check is clearly to complicated to make it work in every situation.

I will give it some thought and see if I can come up with a more universal solution.
[Android Apps and Games] rf69:
Thanks, i really appreciate it.. ;)
[Android Apps and Games] kantjer:
[MENTION=901572]iPAQ 6515a User[/MENTION] do you know the backup size difference between a compressed and uncompressed backup?

I'm adding something in the disk space task to compensate for compression but I need to know the compression factor.
[Android Apps and Games] iPAQ 6515a User:
Compressed file is roughly 50 % of the regular one
[Android Apps and Games] kantjer:
[MENTION=901572]iPAQ 6515a User[/MENTION] [MENTION=7461709]rf69[/MENTION] can you please test the version below.

I hope everything is now fixed and working.

https://www.androidfilehost.com/?fid=457095661767112300
[Android Apps and Games] iPAQ 6515a User:
There's an error in space checking script (see the attached image), however the backup script is working 100%. I just:

changed the backup folder location,

added mkdir -p /cache/recovery (before line 1),

edited the recovery parameters to SDBOM (no need for cache being backed up)

and disabled the free space check in recovery.
[Android Apps and Games] rf69:
Works 100%, i ran all 3 tasks separately & then ran the profile and it works..

I also just changed the partitions to "SDCBO" & directory to SD card..

Thanks :cool:
[Android Apps and Games] kantjer:
The space check is probably not working because you changed the backup location.
[Android Apps and Games] iPAQ 6515a User:
I have just double checked. It is not that, I tried with the default folder, with my set folder (I adjusted the task), with the default folder symlinked to mine and with my set folder (without task adjusted) .... no dice ;(

Am running Marshmallow, could it be it?

It has something to do with grep /dev/ and variable split .... actually it is line 13 error (when frozen the task runs, do not know the result, but it runs)
[Android Apps and Games] kantjer:
Than the only thing I can think of is your system uses a completely different storage naming, that's why "grep /dev/" isn't working.

Normally on Linux storage devices are "/dev/something"
[Android Apps and Games] kantjer:
See this
[Android Apps and Games] iPAQ 6515a User:
How could I check it? Any command for that in Terminal?

I am pretty sure it is dev, too

BTW, the retention task's delete line should be run as root if the backup file is on the external card (this was my case)
[Android Apps and Games] kantjer:
Make sure you ran the retention task at least once and then run the attached task .

It will place a file called dir_test.txt on your sd. Please post or PM that file so I can have a look
[Android Apps and Games] iPAQ 6515a User:
Here you are
[Android Apps and Games] kantjer:
I will have a look hopefully later today.

EDIT:

Not sure if it's because you use external storage but your phone seems to do/report everything storage related differently.

Making the free space check working would mean making a separate version.

I don't have the time nor the device to test it.
[Android Apps and Games] rf69:
I use external SD as storage and it works perfectly, i don't think it's a script issue..

Updated to CM14.1 today & it still works..
[Android Apps and Games] kantjer:
Thanks I tried to make the profile as universal as I could.
[Android Apps and Games] iPAQ 6515a User:
I understand, you have done a lot already, so not a biggie.

Thank you for trying
[Android Apps and Games] milt983:
Hi! I downloaded and installed the two profiles (TWRP Backup and TWRP Retention). The profile "TWRP Backup" works perfectly but the profile "TWRP Retention" does not erase the previous backups. This is the backup folder I set: / mnt / ext_sdcard / TWRP / BACKUPS / HUAWEI_P7.

How do I fix? Thanks in advance!
[Android Apps and Games] kantjer:
according to an other users to be able to delete backup from an external SD the root option should be used.

I can't test that, I don't have an external SD
[Android Apps and Games] milt983:
Thank you for your answer,

I have rooted phone but, where I have to set the rooted option?...
[Android Apps and Games] kantjer:
In the retention task, delete directory
[Android Apps and Games] milt983:
I've marked the root box but unfortunately it does not work ... Maybe I have to change the folder in activities TWRP retention? If so, how should I do?
[Android Apps and Games] rf69:
Make sure that the 2 "List File" actions (in Disk Space Check & Retension) are identical.. I saw your previous comment and I'm not sure if it's just me, but your directory looks wrong, please see attached (mine is working on SD Card).. **No Device Serial, the script does that**..

Note that you're first part will not look exactly the same as mine.

Also, to be able to do a Nandroid backup to SD your TWRP Recovery should know that it is your default backup location.. That do that is very easy, just boot into recovery and make a manual Nandroid backup (anything will do, as long as it's set to backup to SD Card)... Just tick the smallest one..

Hope this helped, let me know if you need further assistance..

:cool:
[Android Apps and Games] milt983:
Hi and thanks for answer. I can't understand how can I change (in the recovery too) the default folder of backup, because also the nadroid backup from the recovery is done in the folder (/ext_sdcard/TWRP/BACKUPS/HUAWEI_P7). I would change the folder in / ext_sdcard / TWRP / (because I have not enough free space in internal sd). How can I do this?
[Android Apps and Games] rf69:
In TWRP when you go to backup, there are options (Set a Name, Choose what to backup & Where to backup/backup location).. You can set the name too anything you like for example - Test, then select the smallest partition to backup (size will be next to the partition name)..

When you have done that, select your backup location (it's a button at the bottom if I'm not mistaken).. Then do the backup (when you have done a backup to SD, TWRP will remember SD as your default location)..

According to what you said about the scripts location of backup, you'll have to change it to "/ext_sdcard/TWRP/BACKUPS"..

Hope it helps, test it out and let me know.. ;)
[Android Apps and Games] milt983:
I'm sorry, I did not understand: what TWRP do you mean? Do you mean the TWRP recovery? Or the TWRP Tasker Profile?

However, on TWRP Ricovery (I have the 3.0.0.0), there is no possibility to choose the folder, only the name and the generic "Inernal SD", "External SD" or "USB OTG"...

Thanks for your help!
[Android Apps and Games] rf69:
What i meant by location, was too choose "External SD" when you click on the "Select Storage" button..
[Android Apps and Games] kantjer:
can you run the task again only this time use use "df -a %BUdir1"
[Android Apps and Games] milt983:
I tried the variable that you recommended. This is the result: "...List Files: File not found..." :( ...

It is possible that the retention profile works only in the internal sd?
[Android Apps and Games] kantjer:
don't use that, it just for testing.
[Android Apps and Games] milt983:
I see, ok...
[Android Apps and Games] milt983:
Finally I found the solution to the problem. I will post the details later.
[Android Apps and Games] iPAQ 6515a User:
No dice :(
[Android Apps and Games] kantjer:
Damn, the biggest issue I have is that the log you posted in #125 shows the sizes in human readable format.

That's not what you want when calculating with it.

check this to see the difference.

On your phone the "df" output looks as if "df -h" was used.

No idea why or how to fix that.
[Android Apps and Games] iPAQ 6515a User:
Hmm, none of the parameters works, it causes the command to end up with an error.

The command with no parameter works but the outcome is human readable

That's really weird
[Android Apps and Games] kantjer:
Perhaps its the busybox version on your phone
[Android Apps and Games] milt983:
As I say previously, in my case, I find the solution in one of my devices...

I take a look to the "Vars" and see that there are several variables: %BUdir1 , %BUdir2 , %BUdir3 , %BUdir4 , %BUdir5 and, off course, each one is a different folder. So I changed a little the Task retention, maintaining or adding only the folder to my interests and now the TWRP Retention profile works perfecttly.
[Android Apps and Games] kantjer:
That's worrying.

Normally the TWRP/BACKUPS folder should only have one sub dir.

The fact that a few users are having issues makes me very reluctant to post an updated version. The version I'm now testing makes much more use of the disk space test routine.
[Android Apps and Games] milt983:
Don't worry. The reason why there are more than a directory, is due to the fact that I'm testing more than one app to backup, including the TWRP recovery. Each of them, save to a different directory. But now that I've solved with the problem of retention, I will use only Tasker. I will post the final profiles.
[Android Apps and Games] kantjer:
Just let the tasker profile use the stock TWRP backup dir, that will make restoring much simpler.
[Android Apps and Games] iPAQ 6515a User:
You may be onto something. Which BusyBox are you using?

I am using one installed by BusyBox Pro v50 app.
[Android Apps and Games] kantjer:
I'm using the version that came with my ROM, v1.22.1
[Android Apps and Games] kantjer:
New test version.

https://www.androidfilehost.com/?fid=457095661767117358

Lots of code cleanup and optimisation.

If the space check reports there is not enough free space to make a backup the oldest backup will be deleted and the space check is run again (only when there is more than one backup)
[Android Apps and Games] iPAQ 6515a User:
I am using BusyBox installed by this app

The latest version 1.25.1 is still giving the human readable outcome. Went back to 1.22.1, no dice.

Installed Jrummy busybox installer with the same results .... it is not busybox then, I am afraid

Your latest "test" works 100% with my changes:

changed the backup folder location,

added mkdir -p /cache/recovery (before line 1),

edited the recovery parameters to SDBOM (no need for cache being backed up)

and disabled the free space check in recovery.
[Android Apps and Games] kantjer:
great, one tip.

set "mkdir -p /cache/recovery" before line 26 and add a 50 MS wait after that.

That way the folder is only made when needed.
[Android Apps and Games] milt983:
Hi! I start to test the "New test version" and post a rapid feedback. During the check of the available space (TWRP Disk space check), an error is detected but the process still continues and ends regularly.

As you can see from the images I posted, the previous backups had the name, plus the date, time and a different "code": "BalongC52" and now and '' MRA58K ". How can I customize the name, adding date and, eventually, changing "MRA58K" into something else?

Thanks!
[Android Apps and Games] kantjer:
the errors are because your previous backup is named different.

But as you noticed I made it so the backup continuous.

The data is already included in the name, I left out the time stamp because I think it's useless.

But the time stamp will be added if a backup with the same date already exists.

MRA58K is the build id and is taken from the build.prop if you want to change that change the splitter (line 3) or remove the whole build_id stuff and set something manual.

Build_id is what TWRP uses by default
[Android Apps and Games] milt983:
Yes, I made a mistake about the date: I meant to say "how can I add the time..." As far as the utility of the time in the name, I ask because It appear to me that if the backup already exist, the procedure stops and says something like: "The backup already exists" but I will rechek it and let you know.
[Android Apps and Games] milt983:
I did another test and, as it seemed, if backups have the same name, the process stops. It also stops before (I think due to the "STOP" variable that you have entered). I remove the STOP variable, the backup go ahead entering into TWRP recovery but then it stops. I sent a screnshot of TWRP log. So, I think, if you need to do more than one backup on the same date, it is necessary to add time to differentiate the name. Unless, after some correction, the procedure will works as you described:

.
[Android Apps and Games] kantjer:
I found the naming issue when the backup name already exists

I made a few changes but had forgotten to also change the naming check routine.

I need to test if everything is now OK but expect a fixed version soon.
[Android Apps and Games] milt983:
Good, I will wait for the new version.
[Android Apps and Games] kantjer:
new test

https://www.androidfilehost.com/?fid=457095661767120159

Fixed time stamp if backup name exist

BU_Int=0 variable will now skip the previous backup check time completely making it possible to schedule as many backups per day as you like
[Android Apps and Games] milt983:
Sorry, it doesn't work... Something in the date goes wrong.
[Android Apps and Games] kantjer:
I have no idea. Tested it on my phone and it all works.

Also looking at the code I can think of any reason it wouldn't work.
[Android Apps and Games] milt983:
In this case, How can I add the time stamp, for default, in backup name?
[Android Apps and Games] kantjer:
Remover line 19, 20 and the is statement in line 21
[Android Apps and Games] rf69:
Works great as always.. ;)
[Android Apps and Games] iPAQ 6515a User:
WOW. That is a concise script, mate. Congrats!

Your latest "test" works 100% with my changes:

changed the backup folder location,

added mkdir -p /cache/recovery (before line 1),

edited the recovery parameters to SDBOM (no need for cache being backed up)

and disabled the free space check in recovery.

*** UPDATE Dec 11 ***

I have replaced my SD Card with a bigger one. Marshmallow changed the name of it (it was ie. xxxx-yyyy and now it is zzzz-bbbb) and the following problem started.

Backup task works with a big BUT: it does not see an already made backup, it tries to run every day and never stops because it thinks there is no backup, then the phone boots into recovery and stays stuck as "the file with the same name already exists".

Tried to go back to the previous task.xml with the exactly same result.

Any ideas how to fix it? [MENTION=3306843]kantjer[/MENTION]
[Android Apps and Games] kantjer:
make sure line 4 n theTWRP retention task point to the correct location
[Android Apps and Games] iPAQ 6515a User:
Line 4 shows this (see the pic 1)

When looked into VAR, it looks as everything is set up correctly (pic 2)
[Android Apps and Games] iPAQ 6515a User:
Pic 2
[Android Apps and Games] kantjer:
This is the line 4 I referred to
[Android Apps and Games] iPAQ 6515a User:
Weird, I am missing this line. Am setting it up now. What's the variable for this one root or keep.
[Android Apps and Games] iPAQ 6515a User:
Only have BUdir1

These are my XMLs

https://www.dropbox.com/s/fozdfswosrgbxxu/xml.zip?dl=0
[Android Apps and Games] kantjer:
just import the retention task again from my zip

You must have removed something that is essential to the script
[Android Apps and Games] iPAQ 6515a User:
I did that... With no results
[Android Apps and Games] kantjer:
I don see how that can have no result :confused:

importing the task should bring line 4 back

I suggest you start from scratch, remove Tasker profiles and task's, and all backups and folders.

Make a manual backup in TWRP and import the script and set the path to the one made by the TWRP backup
[Galaxy Note 4 Q&A, Help & Troubleshooting] danangdevils:
Hi there, i'm loving the Note 4 but I've noticed the volume rocker is slight loose. It doesn't rattle when the phone is shaken but there's a definite looseness too it!

Is this the same for anyone else out there?

I checked my g/f Note 3 and there's no looseness to it so i was wondering if this is just the Note 4 or should i take it back for a replacement?

Thanks in advance!
[Galaxy Note 4 Q&A, Help & Troubleshooting] JimRex:
Mine is a bit loose too, but I had it on my old S3 as well, so i don't mind too much.
[Galaxy Note 4 Q&A, Help & Troubleshooting] danangdevils:
Thanks for the reply JimRex, that's good to hear, i thought i might have a dodgy one!

Loving the phone otherwise!
[Galaxy Note 4 Q&A, Help & Troubleshooting] danangdevils:
Any other Note 4 users experiencing the loose volume rocker?
[Galaxy Note 4 Q&A, Help & Troubleshooting] Batfink33:
Yes,me too.
[Galaxy Note 4 Q&A, Help & Troubleshooting] danangdevils:
Thanks Batfink33, im assuming it's the design, just wish it had been a little tighter as when im paying so much for a premium product you want it to be perfect!

I can live with it though seeing as it's otherwise awesome.
[Galaxy Note 4 Q&A, Help & Troubleshooting] boodies:
It's definitely there but luckily it's not a defect lol. I'm really loving what they've done so far with metal meeting the soft plastic is a match made in heaven. Hope they make it fit tighter next time.
[Galaxy Note 4 Q&A, Help & Troubleshooting] bladefrost007:
Mine too a bit loose. On my note 2 its worse
[Galaxy Note 4 Q&A, Help & Troubleshooting] homer285:
In which way are all your loose? Mine has a very very small amount of movement when touched but is definitely not loose.
[Galaxy Note 4 Q&A, Help & Troubleshooting] danangdevils:
Thanks for the replies everyone!

homer285, it's loose but not to the point where it rattles if shaken. I guess it depends what you class as a small bit of movement really, i was just concerned as i thought there would be no movement whatsoever, nice and tight. It seems though that it's the norm for there to be some movement.

There's even some movement in the power button too.

I'm grateful for the metal surround though, it makes the phone feel so much more premium than previous models!
[Android Q&A, Help & Troubleshooting] QA Bot:
[Q&A] 4.4.4-CM11 for huawei honor & Ideos X5 U8800 Pro & others KitKat flavours

Q&A for 4.4.4-CM11 for huawei honor & Ideos X5 U8800 Pro & others KitKat flavours

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for 4.4.4-CM11 for huawei honor & Ideos X5 U8800 Pro & others KitKat flavours. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)