Since you're talking about running these events overnight, the short answer is that you can run all of them. Doing redundant defragmentation won't hurt your machine. It may waste time, but if you're running it overnight, it won't matter.
The most important thing, of course, is backup. Preferably to an external device or network share, if possible. Your data is the most important thing; everything else can be rebuilt if necessary.
What I find is the best to handle syncronization of these tasks is to run a single task overnight. That task is a batch job, which runs each of the other tasks in sequence. That way, you don't get a disk cleanup starting while the backup is still running, etc.
or any other thing...
Overnight jobs are a great time to
- sync your system clock
- compress redundant/obsolete logs
- rebuild any tools that have large indexes
- run chkdsk on large drives
And should i run all these things in
Safe-mode always?
There's no need to do that, unless a particular application you're running explicitly requires it.
I want to perform all mentioned things
automatically in night. How to set
schedule and What would be the best
plan. for daily weekly and monthly?
In XP, there's a cron daemon (to use the Unix term) already built in. It's called "Scheduled Tasks".
To set up a cron job/scheduled task called "Overnight", do the following:
Control Panel->Scheduled Tasks->File->New->Scheduled Task
Select the "New Task"->Properties, and enter:
[Task Tab]
(Run) C:\Windows\System32\cmd.exe /C C:\Overnight.bat
(Start in) C:\
[Schedule Tab]
Select daily, 4:00 AM, every 1 days
And click . You'll have to enter your password for the task to be loaded. Now, the Overnight.bat batch file will run at 4 in the morning every day.
Within the batch file, you can call all the utilities that you want, in succession. There's all sorts of ways to check the day and date, so if you only want to run a defrag on Mondays, you can do that.
In my overnight script, for example, I do a complete image backup of my C: drive (using DriveXML) every Monday. If it's not Monday, I just do an incremental backup of C: to another disk. I do a full defrag of certain disks on certain days, not all at once. Of course, I'm sitting on 6TB of data, so I have to compartmentalize it a bit more than you will, otherwise my 4am job would still be running a 8am when I wake up.