WinRAR Backup Tips-imsoft.cnblogs

Source: Internet
Author: User

RAR Console daily backup strategy Run.bat
RAR a-ep1-agyyyy{}mm{month}dd{Day} backup @list. txt
-EP1 is to ignore the original file path, the RAR package is a bunch of files, no directory structure
-ag additional naming rules
@list. txt as follows
C:\Program Files\opera\profile\notes.adr
C:\Program Files\opera\profile\opera6.adr
C:\Program Files\opera\profile\opera6.ini
C:\Program Files\opera\profile\search.ini
C:\Program Files\opera\profile\contacts.adr
C:\Program Files\filezilla\filezilla.xml
C:\Program Files\editplus 2\editplus.ini
With winrar console commands and DOS batch self-customizing backups in the WinRAR program directory, there is a DOS file Rar.exe that can be run independently of the WinRAR.
New batch file Bak.bat, write
@echo off
Echo.
Echo Backup Favorites (Press a key) ...
Pause > nul
rar a fav "%userprofile%\favorites"
if errorlevel 0 Echo Favorites Backup complete

Echo.
Echo Backup FileZilla (press a key) ...
Pause > nul
RAR a Fzl "%programfiles%\filezilla\filezilla.xml" > Nul
if errorlevel 0 echo filezilla.xml backup complete

Echo.
Echo Backup notes ...
Pause > nul
Rename E:\MyDoc\ note. Log "Note _%date%.txt"
if errorlevel 1 echo Error & Goto end
Echo. Log > E:\MyDoc\ Note. log
RAR a Log "E:\MyDoc\ Note *"
: End

Batch processing knowledge points used:
• System path invocation:%programfiles% and%userprofile%
• Pipe operation pause > Nul,echo. Log > E:\MyDoc\ Note. log

View Rar.exe parameter setting format, with rar/?

Practical tips for Notepad:
. LOG
The beginning of the file automatically becomes the log file, that is, automatically append the current date when exiting.
I am accustomed to creating a hidden shortcut on the desktop, pointing to E:\MyDoc\ note. Log, which sets the shortcut key Ctrl+alt+l
This shortcut will bring up Notepad to edit your notes, no matter what Windows program you are running. log, very convenient. WinRAR for automatic package backupIn the daily work, you may often encounter the contents of some folders need regular packaging backup, that there is a convenient and effective way to achieve this function! The answer is yes. Let's take a look at how to use WinRAR to automate the package backup function.
First, create a backup file
1. First, we need to identify the files and folders to be backed up. In this case:
2. Create a backup list file
3. Create a backup file
Second, set up intelligent automatic backup start
1. Open the Scheduled Tasks
2. Add Task
3. Double-click the icon to set it in the popup dialog box
Iii. things to be aware of when backing up
1. If you want to take LAN multi-machine backup at the same time, then the machine must be powered on, and must first login to the machine or no need to enter the network password, otherwise winrar will not be able to provide a password and refused to perform a compressed backup. Therefore, it is best that the machine's login username and password are consistent with the server. (This example 192.168.0.3 the machine is directly used by me, so with the server's user name and password consistent.) Use the default system administrator account and unify the password. Because of the sharing, there may be unsafe factors, so it is not recommended to use the outside network. This article is from the Flying Tutorial original link: http://www.51fy.cn/special/winrar/200706/39116.htm Alternative WinRAR also enable smart backup-winrar, Backup, tips, restore-
For every computer user, the backup of the data is undoubtedly not negligible. Usually we simply copy the important data somewhere and get it done. However, simple replication can be cumbersome when the data to be backed up is distributed across different folders. Second, perhaps only one of the files in a folder has been changed, but we are also copying the entire folder, which can waste a lot of time. Due to these inconveniences, many professional backup software comes into being. While we are learning to use these software, we also have to pay a registration fee. In fact, in our common software there is an easy to implement intelligent backup, sparing us a lot of trouble. This is winrar. Not only that, but also to achieve a higher level of application through collaboration with some common features in Windows. Let's talk about how to use this common compression software for intelligent backup and update of data.

1, first, we need to identify which files and folders to back up. In my case, I need to back up the working folder (located in D:\lj\work), the Mail folder (located in D:\foxmail\mail), and the private file (located in the d:\lj\ private file). The installation path for the WinRAR is C:\program Files\winrar. So the following is also in my folder as an example of operations, readers can be based on their actual situation to make the corresponding changes.

2. Next, you need to create a backup list file (suffix 1st). The content of this file is the path to the specific data that needs to be backed up. I set up a text file called mybackup.1st in the backup folder (D:\lj\back) in my directory to store mail messages and working file information. Enter the following: D:\lj\work//Backup working folder D:\Foxmail\mail//backup Foxmail letter D:\lj\ Private File//backup my private file

(Note: This file is preceded by a file or folder for WinRAR to be backed up, and "//" is followed by a comment on the previous item, which does not affect the file.) Backup list file name can be random, but suffix name cannot change)

In fact, the data on the other machines on the LAN can also be backed up in the local computer, when the list file is written with the full path of the file or folder that needs to be backed up, such as \\computer1\d\lj\work.   Note that you must first log in to that machine or you do not need to enter a network password, otherwise winrar will refuse compression because it cannot provide a password. 3. Create a backup file right-click on the desktop, select "New" → "Shortcut" command, click the "Browse" button in the open window, locate the WinRAR.exe file, then add: A–ep2–ibck d:\lj\back\backup.rar @d:\lj\back \mybackup.1st, (there should be a space between each command) that the last command line should be: "C:\Program Files\winrar\winrar.exe" A–ep2–ibck D:\lj\back\backup.rar @d:\lj\ back\mybackup.1st

Then name the shortcut "backup." By double-clicking the shortcut, WinRAR automatically reads the files and folders in the backup.1st file that you want to back up in the background, and a vertical line on the WinRAR icon indicates the backup process and automatically backs them up to the D:\lj\back\backup.rar file.

The parameters in the above command line are: "A" means to add the specified files and folders to the compressed package; "-EP2" indicates that the full file path is stored when compressing, and "-ibck" indicates that the WinRAR is running in the background. Also note that the horizontal line before "-ep2" should be a minus sign in the English state. In fact, there are more command parameters available for us to use, such as-p1234 can set the backup file password 1234 and so on. You can query in WinRAR's help file.

4, update the backup file above is only a simple backup of important data, far from intelligence. Since we are working every day, the data is constantly changing, so it must be updated frequently. Backup updates can of course be done by clicking on the "Backup" shortcut, but the re-backup takes too much time, and we can let winrar find the changed file to update itself: Copy the "Backup" shortcut on the desktop and rename the copied shortcut to "Backup Update". Then right-click the file and change the command line in the attribute to: "C:\Program Files\winrar\winrar.exe" U–y–ibck D:\lj\back\backup.rar @d:\lj\back\mybackup.1st ( The parameter u means that the file within the package is updated, and y means that all queries are answered "yes" and determined. This way, you can update the above files by double-clicking the "Backup Update" shortcut on the desktop before you leave the office to synchronize your data.

If you are backing up before you shut down, you can add a command "-ioff" to the command line above and change the command line to "C:\Program Files\winrar\winrar.exe" U–y–ibck–ioff d:\lj\back\ Backup.rar @d:\lj\back\mybackup.1st. In this way, every time you double-click the shortcut, the computer after the background backup of the data after the update automatically shut down, is not very smart?

Now, we have been able to make important data backup and update work very conveniently. In fact, with the common features of Windows, we can also make backup more intelligent. For example, we can add a shortcut to the backup update that we created to the Windows system's scheduled tasks, and then specify the run time for it to achieve a scheduled backup, or you can drag the shortcut with the left mouse button to start → programs → start, This will automatically update the backup at each boot. There are more features, look forward to your readers to explore it!
WinRAR<Command>-<Switch1>-<switchn> <archive> <files> < @listfiles> <path_to_extract\>

Using WinRAR can read the file/folder to be compressed from the list file, we can create a list file such as C:\backup.txt, in this file to write the file/folder path that needs to be backed up, the format is simple, one line per path. Then create a shortcut (or batch file) with the following command:

"C:\Program Files\winrar\winrar.exe" a C:\backup.rar @c:\backup.txt

To make a backup, simply execute this command, which will generate a backup-after-file for C: \ You'd better transfer it to another storage device. With Windows Scheduled tasks, you can also perform scheduled automatic backups. You can also specify additional parameters, such as adding-ibck to allow backups to be performed in the background, plus-T can be verified after compression, and so on, refer to the WinRAR Help topic for details.

The disadvantage of this approach is that you have to identify the information that needs to be backed up, and some software has a bad backup of the information in the registry, so you may need to back up the registry manually while backing up in this way. However, many of the tools dedicated to backup do not have this feature.

@echo off
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Attendance system spare parts C:\Program files\winton\mis_ii\data\*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ summary file \ e:\zimag\ Manager File \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Business Department \ e:\zimag\ Department \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Health Department \ e:\zimag\ Sheng Department \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Quality Assurance Department \ e:\zimag\ Quality Assurance Department \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Management Department \ e:\zimag\ Management Department \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ Engineering Dept. \ E:\zimag\ Engineering Dept. \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ electricity kobe \ e:\zimag\ Kobe \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ purchasing Department \ e:\zimag\ Purchasing Department \*.*
RAR a-r-agyymmdd-y-u-hpnan8020 f:\zimag\ part shared \ e:\zimag\ Part shared \*.*
Exit use WinRAR to schedule backups of computer folders

1. Install winrar;
2. Create a new text document, enter

Program code

C:\progra~1\winrar\winrar.exe a-ag-k-r-s-ibck E:\DataBak\bak.rar E:\Data\


3. Save the above file as: Bak.bat
4. Use scheduled tasks to run this file regularly to achieve scheduled backups.
/*---------------Parameter Description-------------------*/
Winrar.exe: Run winrar;
A: Back up all files;
-ag: When creating a compressed file, append the current date string with the format "YYYYMMDDHHMMSS", the file name Bakyyyymmddhhmmss.rar;
-K: Lock the compressed file;
-S: Create a solid compaction file;
-IBCK: Running in the background;
E:\Databak\bak.rar: The path and base name of the backup (the-ag parameter automatically adds the system current time after Bak);
E:\Data\: The directory of files to be backed up;
/*---------------Description End-------------------*/

winrar+ Task Scheduler = FREE scheduled backup

If you are working in a LAN, be sure to back up your data frequently for security reasons. The following tips will allow your computer to automatically back up your files to the server on time, and simply winrar, plus windows ' scheduled tasks can easily enable the computer to automatically scheduled backup, shutdown backup, idle backup and other functions.
(In this example, to periodically back up all new files under the C:\Work folder to the \\Ctipsserver\bak folder, the operating system is Windows 2000/XP.) )
   first, make the configuration file
Start explorer and go to the C:\Work folder. Select and right-click All files, select "winrar→ Add to Package", open the "compress package name and Parameters" window, click the "Backup" tab, tick the "Generate compressed file name by mask" check box. Then click the General tab. and click the "Browse" button to save the file to the \\Ctipsserver\bak folder.
                 
Next, click the "Configure" button, select "Save current configuration as new configuration", enter the backup scheme name in "configuration name", such as "Back up work File contents", and select "Save file File name" and "Save selected filename" and "Create Shortcut on desktop" check box. Click the OK button to return to the save file file name and Parameters window and press the OK button to back up the files.
   second, scheduled backup
Click "start → settings → control Panel → Task Scheduler". Next, drag and drop the backup work file contents shortcut on the desktop to the Task Scheduler window. Then double-click the backup work file contents icon to set its properties.
Click the Schedule tab, click the Scheduled Task drop-down list box, select Daily, and start time to your own time. Click the Settings tab, and uncheck "Do not start task if the computer is running on battery" under power management.
                 
With the above settings, when you set the time, the computer will automatically back up all the files under C:\Work to the \\Ctipsserver\bak folder, and the date and time of the backup as the file name, such as Work20030306141726.rar, Work20030306151826.rar and so on.
   tips [/font-color]
★ If you want to back up your data while your computer is idle, click the Task Scheduler drop-down list box, select Idle, and change the time to 10 minutes when the computer is idle for more than XX minutes. After completing the above settings, press the "OK" button, then enter the system administrator password in the open window and exit the Setup window. This way, when there is no action after 10 minutes, the computer automatically backs up the data.
★ Automatic backup at system startup: Click the Task Scheduler drop-down list box to select "at system Startup" and the system will automatically back up the data when it starts.
★ Shutdown When Backup is complete: If you're off 5 o'clock, you can create a WinRAR profile, click the Advanced tab, and then select the power off the computer after completing the Operation check box. The task is then scheduled to back up the data at 5 o'clock so that when the data is backed up, the computer shuts down automatically.

One-click BackUp for WinRAR (OCB)
One-click Backup for WinRAR is a free back-up tool that can be found from its name and is combined with the well-known compression tool software-WinRAR. The user is able to create a list of files to be backed up through One-click backup for WinRAR on a daily basis, creating a different backup window for files of various nature, so that your backup data can be categorized according to requirements. Later, when you want to make a backup ...
WinRAR Command Extensions-automatic backup toolcommand to extend RAR, for compressed backup a little Help, support directory automatic backup, each directory has its own timer, support circular backup (such as after 10 times of backup automatically overwrite), support daily, weekly, monthly backup winrar command-line mode execution2007-05-08 09:14

WinRAR command-line mode execution
<---->
If I want to compress the d:/123 directory into D:/test_2005-07-20.rar, I can do it.
Path/winrar a-m5-k-t-agyyyy-mm-dd D:\test_ d:\\123

2 replies: Ask a master, winrar command line how to use?
I wrote one of:
C:\\progra~1\\winrar\\winrar a-m5-k-t-ag[yyyy-mm-dd-hh-mm-ss] d:\\flashget\\backup\\flashget-d:\\flashget\\ Default.jcd
A add files to the compressed package.
-M5 with maximum compression,-m0 min
-K Locks the compressed file so that the compressed file is not modifiable
-T test compressed files
-AG[YYYY-MM-DD-HH-MM-SS] Add time to Title
D:\\flashget\\backup\\ Compress Package Save path
D:\\FLASHGET\\DEFAULT.JCD source file path and file name

The resulting file is:
D:\\flashget\\backup\\flashget-[2005-02-05-22-29-42].rar


WinRAR command line
1.winrar: There are n files in the same directory, to compress them separately and delete the original files after each compression
For%%c in (*. *) do rar m _%%c%%c
ren _.* *.rar

2. Write a script to compress a specified file
Set Shell = CreateObject ("Wscript.Shell")
Dim Ireturn
Zippath = "C:\Program Files\winrar\winrar.exe"
SFile = ". \result\20060511"
Ireturn = Shell.run ("" "" & Zippath & "" "A-ap-t" & SFile & ". rar" & SFile & ". csv", 1, true)

WinRAR command line application small test sledgehammer!

It's easy to believe that few people want to use the command line: trouble. That's true, but some jobs tend to be handy with the command line, such as regular backups. The following is an example of backing up IE's Favorites (and of course directly copying backups):

1. Create a batch file with only 1 rows in it

Backfav.bat (name can be casually) file content:

REM This batch file is used to automatically back up my favorites
REM WinRAR < commands >-< switch 1>-< switch n> < zip file > < file ...> <@ list file ...> < decompression path \>
"D:\Program files\winrar\winrar.exe" A-as-r-sfx-zsfxpara.txt-ep1 "D:\My Documents\favorites.exe"%userprofile%\ Favorites "

A: Add the specified file (source directory, here is "%userprofile%\favorites") and folder to the compressed file (destination file, here is "D:\My Documents\favorites.exe").

-as: This is a switch, refers to the way to add "Sync compressed file content"

-r: Indicates "contains subfolders"

-SFX: Indicates that a self-extracting file was created

-zsfxpara.txt: Read the compressed file comment from the file sfxpara.txt, what does this comment have to explain later

-EP1: Indicates that the path%userprofile% is not saved in the compressed file

2. The role of the annotation file

When creating a compressed file, you should not only consider compressing those files, but also consider how to decompress them. A comment file allows you to pass a lot of useful information to a compressed package.

Sfxpara.txt content:

path=%userprofile%\
Silent=1

Path: Extracted paths

Silent=1: Do not open the user interface

3. Subsections

It's really a hassle to build such a bat, because it's going to keep checking the manual, but once it's set up, it will be once and for all. The original backup once again is the choice of options and the path, now just double-click the bat, it is done. When recovering, just double-click the Favorites.exe to do it. In fact, the command line can fully realize the full functionality of the GUI, I hope this article can play a role.

WinRAR command Line Backup SQL Server database file or VSS source code database Directory ...

WinRAR Backup SQL Server database files from the command line



1. Close and open SQL Server, there are many ways under the command line, the following list two (1) the SCM command to close the Scm-slient 1-action 6-service MSSQLServer through the SCM command to open scm-slient 1-action 1-service MSSQLServer REF:HTTP://SUPPORT.MICROSOFT.COM/KB/196654/ZH-CN HTTP://SUPPORT.MICROSOFT.COM/KB/230236/ZH-CN(2) net stop MSSQLserver
net start MSSQLserver 2. Call the WinRAR command-line backup case: @echo off
net stop MSSQLserver
C:
CD "C:\Program Files\winrar"
Rar.exe a-ag "-[yyyy-mm-dd-hh-mm-ss" "-k-r-s-ibck-inul" E:\SQL.rar "E:\Microsoft SQL Server data\mssql\data\haofa*.*"
net start MSSQLserver
Parameter description: A: Back up all files;
-ag: When creating a compressed file, append the current date string with the format "YYYYMMDDHHMMSS", the file name Sqlyyyymmddhhmmss.rar;
-K: Lock the compressed file;
-S: Create a solid compaction file;
-IBCK: Running in the background;
-inul: Disables the error prompt, avoids the inability to compress the database file, does not perform the subsequent database service to open;




WinRAR command Line Backup VSS source code database directory ...

@echo off
C:
CD "C:\Program Files\winrar"
Rar.exe a-ag "-[yyyy-mm-dd-hh-mm-ss]"-k-r-s-ibck-inul "F:\Vss_Bak\Vss.rar" "F:\Visual SourceSafe 6.0\vss\data\*.*" system backup requires only one key! We often have a lot of important text materials, photos and other important documents need to be backed up, but each time to collect and organize and then use WinRAR and other tools packaging compression, the process is quite cumbersome, if there is a way to automatically collect your data on a regular basis, automatically packaged with WinRAR, saved to your scheduled location, That's more convenient. One-click Backup for WinRAR (referred to as OCB) is born, it can take the WinRAR command, to help you easily backup compression. We can set up a list of files to be backed up by OCB, so that the backup data according to different needs, organized, and when we do a backup, OCB will automatically summon winrar to compress the backup data into a RAR archive, not only convenient, But also can effectively save the storage of backup files required hard disk space, why not! OCB: http://www.skycn.com/soft/28914.html

First, the backup solution is arbitrary
To back up your personal files, you need to add your own backup items. Click the New button on the main interface toolbar to pop up the new Backup item window.
First step: Create a new backup scenario
Give the backup task a name in the Preset name (config name) text box, which is the configuration scheme file name that we want to create, such as "Datebackup". In the Archive file name (zipped package file name) text box, enter the file name of the package that you want to create, such as Word. The format of the "Add Date and Time" (add file date and times) text box is used to define the format of the date after the compressed file name, which can be added to the compressed package on the date and time when the file was compressed, and can be guaranteed to have multiple versions of the backup file (see Figure 1). "Run external program Before/after Preset" (Before/after executing a profile), for example, before we backup, to ensure that the backup file is clean, you can use this option to invoke the antivirus program to complete the backup file directory before the backup. The usage is simple and generally does not need to be set, with default values.


Step Two: Select the Backup method
Set up a backup in the Quick Actions control bar, with "COPY, CD-ROM, SMTP, FTP" and other 4 ways to choose, corresponding to "local backup, Backup to rewritable disc, SMTP Mailbox and FTP space", Choose according to your actual needs.
1. Native backup. Select Copy in the Quick actions control bar, then switch to the Actions tab and tick "Write Archives to Folder" in the "COPY" column. You can then open the destination folder to which you want to back up by following the browse button.
2. Back up to the rewritable CD/DVD. Nowadays, the recorder is very popular, many friends like to use DVD burning disk as a large-capacity mobile hard disk, used to back up personal document information is very convenient. To back up the data to a CD/DVD burning disk, first tick the "Wre|ite to a cd-r/rw" checkbox, then select your burner correctly from the drop-down list and choose whether to erase or append the burn according to your actual needs.
3. Back up to the FTP space. If you have FTP space, you can also use the usual documentation

FTP space, so you can use it anytime, anywhere. Tick "Upload to FTP Server" and enter the address of the FTP server in the "Server" text box, such as "210.72.225.179", and enter the user name and password in the "user" and "Pass" text boxes (see Figure 2).


4. Back up to the SMTP mailbox. Now a large number of gigabytes of high-capacity mailbox everywhere, so for the common documentation we can back up to their own mailbox to be ready to use. Tick "Send as e-mail attach via SMTP Server" and, in the "Server" text box, enter the address of the SMTP server and the port number used, such as "smtp.****.com:465", and correctly enter your own user name, passwords, and email messages.
Tip: We can choose to back up the backup item only to one place, or you can choose to back it up to multiple places at the same time, as if you chose to back it up to the local and FTP server.

Step three: Select the files you want to back up
Switch to the File lists tab, and then open the Explorer and drag and drop the folder you want to back into the Include list. In addition, you can switch to "notes/comment" to add some comments to facilitate their own memory. Finally click on the "OK" button to create the backup scheme is complete.

Second, the use of backup programs
To use the backup scheme, it is very simple, in the scenario list, double-click the backup scheme. In addition, we right-click on the scheme name, choose the "Create a Shortcut" command from the pop-up menu, then choose whether it is on the Start menu or on the desktop in the pop-up menu. This allows us to quickly back up the data through a shortcut on the desktop or in the Start menu. In addition, we can make the backup plan execute at timed time by clicking on the "Schedule" (Task) on the toolbar and then setting it in the pop-up window. If you want the scenario to be automatically backed up when Windows starts, click Settings on the toolbar, and in the window that appears, select Run,complete all Tasks and Quit/stay in memory.

WinRAR Backup Tips-imsoft.cnblogs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.