|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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.
|
|
|
|
|
|
#2 |
|
Barefoot on the Moon!
Staff
Premium Member
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. |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Apr 2003
Posts: 303
|
Thanks ForceFlow, looks good.
|
|
|
|
|
|
#4 |
|
Member (9 bit)
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. |
|
|
|
|
|
#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.
|
|
|
|
|
|
#6 |
|
Forum Administrator
Staff
Premium Member
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.
|
|
|
|
|
|
#7 |
|
Ride 'em Cowboy
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 |
|
|
|
|
|
#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. |
|
|
|
|
|
#9 | |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Quote:
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. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |