BACKUP

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: BACKUP
Abbreviation: BA Shift+C
Type: Command
Token code: BASIC 4.0:
210/$D2
BASIC 3.5 and 7.0:
246/$F6
Handling routine
in BASIC ROM:
BASIC 3.5:
51712–51733
$CA00–$CA15
BASIC 7.0:
41852–41911
$A37C–$A3B7
List of all BASIC keywords


Remark: This article describes the BASIC command BACKUP in Commodore BASIC V3.5 or higher.

Type: Command
General Programming-Syntax: 
  BACKUP D(<drive number>) TO [D(<drive number>)] [[,]ON U(<device number>)]

BACKUP is a BASIC 3.5 command that can be used to copy an entire diskette to another on a dual drive system. The backup command erases all files on the destination disk (which is formatted in the same way as done by HEADER), so it is recommended to choose a blank diskette. While in direct mode an interactive acknowledgement

ARE YOU SURE?

is requested. Any character different from "Y" aborts the command.

According to the manual, "This command can only be used with the dual disk drive."

Examples[edit | edit source]

Copies all files from the disk in drive 0 to the disk in drive 1 (implicitly on floppy device 8):

BACKUP D0 TO D1

Copies all files from the disk in drive 0 to the disk in drive 1 in disk drive unit 9:

BACKUP D0 TO D1 ON U9


BASIC V3.5 Commands

ABS | ASC | ATN | AUTO | BACKUP | BOX | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLOR | CONT | COPY | COS | DATA | DEC | DEF | DELETE | DIM | DIRECTORY | DLOAD | DO | DRAW | DS | DS$ | DSAVE | END | EL | ELSE | ER | ERR$ | EXIT | EXP | FN | FOR | FRE | GET | GET# | GETKEY | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | NEW | NEXT | ON | OPEN | PAINT | PEEK | POKE | POS | PRINT | PRINT USING | PRINT# | PUDEF | RCLR | RDOT | READ | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RLUM | RND | RUN | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SOUND | SPC | SQR | SSHAPE | STOP | STR$ | SYS | TAB | TAN | TRAP | TROFF | TRON | UNTIL | USR | VAL | VERIFY | VOL | WHILE | WAIT