China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-23 18:13
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » How to write the automatic backup and restore script for PQDI 6.0? View 1,506 Replies 9
Original Poster Posted 2007-02-01 11:33 ·  中国 山东 东营 联通
新手上路
Credits 8
Posts 3
Joined 2007-02-01 11:03
19-year member
UID 78316
Gender Male
Status Offline
How to write the automatic backup and restore script for PQDI 6.0? The scripts I downloaded from the internet don't work. Does anyone have a good one? Please provide support. I want to replace ghost with pqdi. Waiting online..........
Floor 2 Posted 2007-02-02 22:49 ·  中国 内蒙古 阿拉善盟 电信
初级用户
Credits 80
Posts 28
Joined 2007-02-01 22:08
19-year member
UID 78341
Gender Male
Status Offline
Backup
ghost.exe -clone,mode=pdump,src=1:1,dst=d:\win.gho -z2 -sure -rb


Restore

ghost.exe -clone,mode=pload,src=d:\win.gho:1,dst=1:1 -sure -rb
Floor 3 Posted 2007-02-03 00:07 ·  中国 河南 济源 联通
中级用户
★★
Credits 343
Posts 50
Joined 2004-02-21 00:00
22-year member
UID 18062
Gender Male
Status Offline
Transfer:
PQDI_OPTIONS
I remember I posted it in the water area. This is my own translation. It's not very good, and I don't have time to verify it. Those who are interested can take a look. If there are errors below, please point them out. Don't scold me~~ Don't ask me about unclear places. Hehe~
Generally, the syntax parameter structure of PQ is as follows:
PQDI <OPTIONS>
<OPTIONS> are as follows:
/CMD=<script file>
Specify the location of the command parameter file. See the following "<script file> Parameter Description" for details.
/IMG=<image file>
Specify the location of the image file.
/ERR=<error file>
If an error occurs, this file will be generated. This file can be used to view the cause of the error, etc.
/LOG=<log file>
Generate a LOG file for all operations so that users can view the operation process.
Different from /ERR=<error file>. /ERR=<error file> only reports error information, and /LOG=<log file> reports all information.
/MFS=<number of bytes>
Set the volume size of the generated image file, in bytes. Similar to GHOST's volume compression. So that it can be burned to CDR/CDRW.
/PWD=<password>
Set the password. Similar to GHOST.
/CBS
Enable bad sector check.
/NBS
Disable bad sector check.
/UEB
/RAV

<script file> Parameter Description:
1 Parameter for selecting the hard disk:
SELECT DRIVE {Number} Select the hard disk
Example:
SELECT DRIVE 1 Select the first hard disk
SELECT DRIVE 1 Select the second hard disk
If your computer has two hard disks at the same time, namely the master disk and the slave disk,
then SELECT DRIVE 1 means your master disk, and SELECT DRIVE 2 means your slave disk.
2 Parameter for selecting the partition:
SELECT PARTITION {Number} Select the partition
Example:
SELECT PARTITION 1 Select the first partition
SELECT PARTITION 2 Select the second partition
This parameter is used in conjunction with the SELECT DRIVE {Number} parameter, so as to specify which partition of which hard disk.
For example: SELECT DRIVE 1
SELECT PARTITION 2
If the above two parameters are used together, it refers to the second partition of the first hard disk.
SELECT PARTITION X Select the partition, X is the drive letter.
This parameter is similar to the above. Both are used to specify the partition. But note. This parameter is used under DOS.
This parameter is best used less. It is recommended not to use it.
I will give you an example to illustrate.
If you have only one hard disk and it is divided into 3 partitions (C: D: E:). All are FAT partitions. In this case
The parameter SELECT PARTITION 2 is the same as SELECT PARTITION D.
However, if your partition D: is an NTFS partition.
The parameter SELECT PARTITION 2 is different from SELECT PARTITION D.
SELECT PARTITION {Volume Label} Select the partition
Example:
SELECT PARTITION "DATA" Select the first partition whose volume label is "DATA".
I think this parameter is not used much.
SELECT PARTITION FIRST
Select the first partition.
SELECT PARTITION NEXT
SELECT PARTITION ALL
Select all partitions.
SELECT FREESPACE FIRST
Select the first free partition currently.
SELECT FREESPACE NEXT
Select the free partition after the previous partition.

3 Select the image file
SELECT IMAGE {Number}
Select the image file number.
SELECT IMAGE 3
Select the third image file
SELECT IMAGE ALL
Select all image files
4 Delete partition
DELETE
Used in conjunction with the SELECT PARTITION command.
DELETE ALL
Delete all partitions
DELETE EXTENDED
Delete the extended partition

5 Check sectors and set active
SECTOR CHECK ON
Enable the bad sector check function
SECTOR CHECK OFF
Disable the bad sector check function
SET ACTIVE
Set the active partition
6 Image file compression
STORE
Generate the image file command. And not compress
STORE WITH COMPRESSION OFF
The generated image file is not compressed (same as above)
STORE WITH COMPRESSION LOW
The generated image file is compressed with a low compression ratio
STORE WITH COMPRESSION HIGH
The generated image file is compressed with a high compression ratio

7 Adjust the size of the partition to be restored. Used in conjunction with DELETE ALL.
RESIZE IMAGE NO
Do not adjust the size of the restored partition. Used in conjunction with RESTORE.
RESIZE IMAGE PROPORTIONAL
Properly adjust the size of the restored partition
RESIZE IMAGE {Number}
Set the size of the restored partition
RESIZE IMAGE 500
Set the size of the restored partition to 500M.
RESIZE IMAGE MAX
RESTORE
Restore command
REBOOT
Floor 4 Posted 2007-02-03 11:02 ·  中国 山东 东营 联通
新手上路
Credits 8
Posts 3
Joined 2007-02-01 11:03
19-year member
UID 78316
Gender Male
Status Offline
Please have member jyssysz write a PQDI 6.0 automatic backup and restore script file. Thanks! Waiting online for download....
Floor 5 Posted 2007-02-05 02:33 ·  中国 上海 电信
新手上路
Credits 2
Posts 1
Joined 2007-02-05 02:04
19-year member
UID 78649
Gender Male
Status Offline
Take a look at the scripts in the one-click recovery.
Floor 6 Posted 2007-02-05 04:09 ·  中国 河南 济源 联通
中级用户
★★
Credits 343
Posts 50
Joined 2004-02-21 00:00
22-year member
UID 18062
Gender Male
Status Offline
Backup:
pqdi /cmd=backup.txt /ERR=ERROR.TXT /img=E:\part1.pqi
Backup:
pqdi /cmd=restore.txt /err=error.txt /img=E:\part1.pqi

backup.txt:
select drive 1
select partition first
store with compression low
reboot

restore.txt:
select drive 1
select partition first
select image 1
restore
reboot
Floor 7 Posted 2007-02-06 02:46 ·  中国 山东 联通
新手上路
Credits 8
Posts 3
Joined 2007-02-01 11:03
19-year member
UID 78316
Gender Male
Status Offline
I also wrote it this way, but it stops when booting to the PQDI main interface (needs manual operation), and cannot automatically back up and restore the system. Please give advice...; My system disk is NTFS, and other disks are in FAT32 format. It should have little to do with the disk format.
Floor 8 Posted 2007-03-16 02:36 ·  中国 河北 石家庄 联通
初级用户
Credits 107
Posts 1
Joined 2004-05-14 00:00
22-year member
UID 24354
Gender Male
Status Offline
How to determine the last partition and backup
Floor 9 Posted 2007-03-16 06:48 ·  中国 山东 菏泽 联通
银牌会员
★★★
Credits 1,246
Posts 488
Joined 2003-11-11 00:00
22-year member
UID 12699
Gender Male
Status Offline
Only the professional version (pro) or server version support scripts.
Floor 10 Posted 2007-03-16 12:31 ·  中国 河南 洛阳 联通
高级用户
★★
Credits 544
Posts 164
Joined 2004-10-17 12:00
21-year member
UID 32648
Gender Male
Status Offline
Please download Tianfeng One-key Recovery

http://www.znpc.net/down/onekey-v3.rar

Extract the BIN file from it and open it to get PQDI
我的留言簿

http://hnlyzhd.ys168.com 我的网络盘
Forum Jump: