source: trunk/minix/man/man8/backup.8@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.8 KB
Line 
1.TH BACKUP 8
2.SH NAME
3backup \- backup files
4.SH SYNOPSIS
5\fBbackup\fR [\fB\-djmnorstvz\fR] \fIdir1 dir2\fR
6.br
7.de FL
8.TP
9\\fB\\$1\\fR
10\\$2
11..
12.de EX
13.TP 20
14\\fB\\$1\\fR
15# \\$2
16..
17.SH OPTIONS
18.FL "\-d" "At top level, only directories are backed up"
19.FL "\-j" "Do not copy junk: \fI *.Z, *.bak, a.out, core\fR, etc"
20.FL "\-m" "If device full, prompt for new diskette"
21.FL "\-n" "Do not backup top-level directories"
22.FL "\-o" "Do not copy \fI*.o\fR files"
23.FL "\-r" "Restore files"
24.FL "\-s" "Do not copy \fI*.s\fR files"
25.FL "\-t" "Preserve creation times"
26.FL "\-v" "Verbose; list files being backed up"
27.FL "\-z" "Compress the files on the backup medium"
28.SH EXAMPLES
29.EX "backup \-mz . /f0" "Backup current directory compressed"
30.EX "backup /bin /usr/bin" "Backup bin from RAM disk to hard disk"
31.SH DESCRIPTION
32.PP
33\fIBackup\fR (recursively) backs up the contents of a given directory and its
34subdirectories to another part of the file system.
35It has two typical uses.
36First, some portion of the file system can be backed up onto 1 or more
37diskettes.
38When a diskette fills up, the user is prompted for a new one.
39The backups are in the form of mountable file systems.
40Second, a directory on RAM disk can be backed up onto hard disk.
41If the target directory is empty, the entire source directory is copied
42there, optionally compressed to save space.
43If the target directory is an old backup, only those files in the target
44directory that are older than similar names in the source directory are
45replaced.
46\fIBackup\fR uses times for this purpose, like \fImake\fR.
47Calling \fIBackup\fR as \fIRestore\fR is equivalent to using the -r option;
48this replaces newer files in the target directory with older files from the
49source directory, uncompressing them if necessary. The target directory
50contents are thus returned to some previous state.
51.SH "SEE ALSO"
52.BR tar (1).
Note: See TracBrowser for help on using the repository browser.