Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-08-2008, 09:02 AM   #1
Member (9 bit)
 
Join Date: Apr 2003
Posts: 303
simple copy script wanted

I copy 4 different folders to my backup HD every week. Does anyone have or know where to get a simple script (.bat file) I can use? Thanks.
tape is offline   Reply With Quote
Old 06-08-2008, 12:06 PM   #2
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Here's what I have going for my backups. Basically, I copy the folders/files I want backed up to another location, then rar them up for compression and basic password protection (note that the password protection won't stop the determined individual)

Also note, don't make your directory paths too long. There is a 250 character limit in directory paths with winrar. While it will back the entire path, you'll have problems trying to retrieve the file. Renaming the folders in the path to one letter is usually the quick fix.

Code:
@echo off
title bookmark backup

REM this is for IE6
XCOPY "C:\Documents and Settings\AJD.AJD2\Favorites" "J:\backups\bookmarks\Documents and Settings\username\Favorites" /y/s/e/c/i


REM this is for FireFox - the "z35y4x8x.default" directory may be named something else on your computer
XCOPY "C:\Documents and Settings\AJD.AJD2\Application Data\Mozilla\Firefox\Profiles\z35y4x8x.default\bookmarks.html" "J:\backups\bookmarks\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\z35y4x8x.default\" /y/c/i


REM this is for Opera
XCOPY "C:\Documents and Settings\AJD.AJD2\Application Data\Opera\Opera8\profile\opera6.adr" "J:\backups\bookmarks\Documents and Settings\username\Application Data\Opera\Opera8\profile\" /y/c/i


REM this is to RAR everything and then delete the copies you made with the above commands.  password for the archive is "password"
"C:\Program Files\WinRAR\WinRAR.exe" A -r -M3 -MD4096 -Y -O+ -Ppassword -EP -ac -isnd -vn -ep1 "J:\backups\bookmarks.rar" "J:\backups\bookmarks\*.*"
RMDIR "J:\backups\bookmarks" /q/s

Since you're using an external HDD, I'd suggest coping on to an internal HDD, then raring to the external HDD.

Also, to keep the drive letter the same, use this tool: http://www.uwe-sieber.de/usbdlm_e.html
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.

Last edited by Force Flow; 06-08-2008 at 12:08 PM.
Force Flow is offline   Reply With Quote
Old 06-09-2008, 06:29 AM   #3
Member (9 bit)
 
Join Date: Apr 2003
Posts: 303
Thanks ForceFlow, looks good.
tape is offline   Reply With Quote
Old 06-09-2008, 09:11 AM   #4
Member (9 bit)
 
ThePoor's Avatar
 
Join Date: Oct 2003
Location: NorthEastern USA
Posts: 369
Why not use the Backup feature that comes with windows (you can schedule an incremental backup) of the files.???
__________________
Fair isn't always equal.
ThePoor is offline   Reply With Quote
Old 06-09-2008, 10:04 AM   #5
Member (9 bit)
 
Join Date: Apr 2003
Posts: 303
I do a monthly backup of my Documents folder using Windows Backup, but I also like to do a weekly copy of my Outlook, Outlook Express, Address Book, & Foxfire info. I date & keep for a month, incase I need to restore lost or damaged files, etc. Although this is not too time consuming, I thought it would be so much easier and quicker to have a .BAT file to click on.
tape is offline   Reply With Quote
Old 06-09-2008, 11:28 AM   #6
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,791
Windows Backup does not do a file by file copy. It compresses everything into one file that requires Windows Backup to restore.
glc is offline   Reply With Quote
Old 06-09-2008, 11:59 AM   #7
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
SyncBack is a flexible, and quite powerful backup and synchronization program that allows to to maintain backup copies of your files and folder, or to synchronize them, so that both locations always have a complete copy (e.g Laptop/PC). It offers different types of actions that let you choose how older and newer files are processed, which files should be excluded (by mask) and more. It offers standard file comparison based on the date and size, as well as optional MD5 checksum, which will detect even the slightest modifications to files. SyncBack also supports scheduled projects, FTP and zip compression of backups, as well as network login, simulation runs and more.

http://www.snapfiles.com/reviews/SyncBack/SyncBack.html
__________________
Stand Up 2 Cancer - SU2C
EzyStvy is offline   Reply With Quote
Old 06-10-2008, 07:55 AM   #8
Member (10 bit)
 
Join Date: Apr 2005
Posts: 537
I cheekily use SyncToy for backing up my laptop to external HDD. It's free and works


But for a more thorough backup I use Acronis TrueImage.
Negeva is offline   Reply With Quote
Old 06-10-2008, 06:22 PM   #9
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Quote:
Originally Posted by ThePoor View Post
Why not use the Backup feature that comes with windows (you can schedule an incremental backup) of the files.???
To answer half the question, I *do* use the "scheduled tasks" tool found in the control panel to run these batch scripts.

If you delve deeper into winrar command line, there's a way to add only the new or changed files to the rar archive. I tried that at one point, but didn't like it since it would still keep deleted files.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
signup script with .htaccess and .htpasswd salchipapi Web Design / Development 1 04-24-2005 05:11 PM
Copy OS from one drive to another webguy0000 Computer Hardware 8 10-18-2004 02:03 PM
DOS - Use Xcopy or a batch file to copy all subdirectories lotrtrotk Windows Legacy Support (XP and earlier) 14 09-18-2004 10:46 AM
1 copy of XP 2 PCs?? Jeradln82 Windows Legacy Support (XP and earlier) 48 03-25-2004 06:25 AM
HTML simple stuff.Help wanted. wilcopshot Web Design / Development 1 03-08-2002 12:14 AM


All times are GMT -5. The time now is 09:21 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2