Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-04-2009
Member
 
Join Date: Apr 2009
Posts: 48
Script data recovery

Hello everyone,

I was given the following directive: to write a script to automatically back up data on portable X posts.

In theory, I issued the first: each time a user, run a login script (via Active Directory) making a copy of all files in a given directory to a backup server.
Code:
net use z: \ \ server \ backup \% username% 
xcopy c: \ data z: / e / h / y / k
will do.

If at each logon users ages 3 expect that all data is copied, it does not. He therefore suggested that a condition for retrieving data: only copied the files new or modified since the last time.
Here it goes again:
Code:
net use z: \ \ server \ backup \% username% 
xcopy c: \ data z: / e / h / y / k / a
But if you think about it, I thought: if the user has at 1st January 1GB of data recovered, and then 3 months after he deleted the data locally and replaced it with 1GB of something else, the server will retain 2GB , which is not useful and could quickly overburden.
Therefore, how to have the files on the disk server are deleted if they are no longer on the client?
I do not know if there is such a command. Perhaps a "if". If yes, what would it?


Thank you in advance for your answers.
Reply With Quote
  #2  
Old 25-04-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Script data recovery

- According to the facilities --

* Safeguarding days on a medium pair
* Odd days backup on another media
* Backup and accumulation weekend archive on another media.
As against the storage time should be set! or increased depending on how the life of the media.
Reply With Quote
  #3  
Old 25-04-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Script data recovery

I discovered the Robocopy command, introduced in Windows Server 2003 Resource Kit Tools

My formula would be:

Code:
Robocopy e: \ monrepertoire d: \ monbackup / mir / s / purge / r: 0
This is the parameter "/ purge" which makes all the difference with my simple xcopy, it removes what is on the server is no longer on the client.

But since yesterday, I thought back to the thing. I thought it would be good if the data are deleted from the server if they are no longer on the client after a certain period. Because if a client destroys its data locally, and then opens a new session, the server will respond deletion!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Script data recovery"
Thread Thread Starter Forum Replies Last Post
New data to the first line in *.csv file via VB Script Conus Software Development 2 12-06-2012 11:04 AM
Why and how to use data recovery? wjason19 Windows Software 1 21-04-2011 12:40 PM
ComboFix Script and Recovery Console Zipp Windows Software 4 07-11-2009 02:27 PM
KSH script to extra xml data McGrawh Software Development 2 20-06-2009 12:00 PM
Data Recovery neuro Hardware Peripherals 5 03-02-2009 10:33 AM


All times are GMT +5.5. The time now is 04:54 PM.