View Single Post
Old March 11th, 2013, 04:33 PM   #38 (permalink)
ROM Developer
Thread Author (OP)
SUroot's Avatar
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,324 Times in 3,995 Posts

Originally Posted by silentwitness View Post
ohh ok cool so what exactly would need to be updated? I tried manually creating a backup to internal memory from philz touch but after it completed i could not see it in the file manager. Im guessing if i were to change the path to external sd it would solve the issue and it would work?
I've just tested this. I know it works on the S3 4.2.1.... I'm not sure about other devices....

But it should be:

[HIGH]# Set today's date
now=$(date +"%d_%m_%y-%H%M")

# Deletes previous archive (as contained within index1.txt)
rm -rf $(cat /sdcard/clockworkmod/backup/index1.txt)

# Moves previous backup to archive (index2 becomes index1 for delete next time)
mv /sdcard/clockworkmod/backup/index2.txt /sdcard/clockworkmod/backup/index1.txt

# Stamps new index 2
echo '/sdcard/clockworkmod/backup/'$now > /sdcard/clockworkmod/backup/index2.txt

# writes a command for recovery to read (creates index2 backup)
echo 'backup_rom("/sdcard/0/clockworkmod/backup/'$now'");' > /cache/recovery/extendedcommand[/HIGH]

But yes, instead of above, you could set external_sd where sdcard/0 is.
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
silentwitness (March 12th, 2013)