View Full Version : Scheduled File Copying
Spiderm@n_
22nd August 2009, 11:44 PM
Is there a way to make a scheduled copying of a file or a few files?
Thanks in advance.
joel2009
23rd August 2009, 03:51 AM
I think its possible through mortscript. Try checking that out.
Spiderm@n_
23rd August 2009, 10:37 AM
Yeah, the problem is I'm not good in writing MortScripts. If someone knows about a ready script, I'll doo the changes myself, after I understand how it works :).
hahn1
19th June 2010, 06:17 AM
Yeah, I had the same issue. I figured out how to fix it through this site. Download GScript from the market and modify the below code to meet your needs. I use Script Scheduler (found on this site) to have it run once a day in the background.
I wrote it on my desktop using Notepad++ and saved to an .sh file.
Code:
busybox renice 5 `pidof com.google.process.gapps`
busybox renice -18 `pidof com.android.phone`
busybox renice -18 `pidof mediaserver`
busybox renice -18 `pidof mediaserver`
busybox renice -16 `pidof com.android.launcher`
busybox renice -15 `pidof com.htc.music`
busybox renice -15 `pidof com.android.music`
{
mv /sdcard/com.tokasiki.android.voicerecorder/*.3gp /sdcard/"Computer Data"/"Voice Recorder"/ ;
mv /sdcard/DCIM/Camera/*.jpg /sdcard/"Computer Data"/Pictures/ ;
mv /sdcard/DCIM/Camera/*.3gp /sdcard/"Computer Data"/Video/ ;
cp /sdcard/download/* /sdcard/"Computer Data"/Downloads/ ;
mv /sdcard/FxCamera/* /sdcard/"Computer Data"/Pictures/ ;
mv /sdcard/iMusic/*.mp3 /sdcard/"Computer Data"/Music/ ;
mv /sdcard/mp3/* /sdcard/"Computer Data"/Music/ ;
mv /sdcard/"Music Junk"/* /sdcard/"Computer Data"/Music/ ;
mv /sdcard/TubeDownloader/* /sdcard/"Computer Data"/Video/ ;
mv /sdcard/Video/* /sdcard/"Computer Data"/Video/ ;
}
Its a simple thing, but it saves me a ton of digging when I want to copy all important media to my computer from the Droid.
Don't really know what the busybox portion does but it was a part of the script.txt file for the scheduler and doesn't seem to hurt any to have it.
It should be pretty self explanatory to change things. Hope that helps.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.