backup 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-backup
핵심 정리
- 두 가지 방식이 있습니다. 이름으로 백업:
find /home -print | backup -iqvf /dev/rmt0. i-node로 파일 시스템 백업:backup -0 -uf /dev/rmt0 /home. - 이름 백업은 표준 입력으로 받은 파일 목록을 백업합니다. 절대 경로로 넣으면 같은 경로로,
./로 시작하는 상대 경로로 넣으면 복원할 때의 현재 디렉터리 기준으로 복원됩니다. - i-node 백업은 수준 0(전체)~9(증분)을 쓰며
-u로/etc/dumpdates에 기록합니다. 수준 n은 n-1 수준 이후 바뀐 파일만 백업합니다. 파일 시스템을 먼저 마운트 해제하는 것이 원칙입니다. - 출력 장치를 지우고 쓰므로 기존 내용은 사라집니다. 기본 장치는
/dev/rfd0(디스켓)이므로 보통-f로 테이프나 파일을 지정합니다. - 복원은
restore로 합니다.mksysb·savevg도 내부적으로 이 형식을 씁니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 -O, -Z, -n과 JFS2 i-node 백업, 512바이트 블록 제한이 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 1, 6.1 Volume 1 |
| 파일 | /usr/sbin/backup, /etc/dumpdates |
| 관련 명령어 | restore, mksysb, savevg, tar, cpio, pax, rdump |
목적
파일과 파일 시스템을 백업합니다.
영어 원문
Backs up files and file systems.
구문
backup -i [ -b Number ] [ -p [ -e RegularExpression ] ] [ -E { force | ignore | warn } ] [ -f Device ] [ -l Number ] [ -U ] [ -O ] [ -o ] [ -q ] [ -v ] [ -Z ]
backup [ [ -Level ] [ -b Number ] [ -c ] [ -f Device ] [ -L Length ] [ -n snapshotName ] [ -U ] [ -O ] [ -u ] ] [ FileSystem ] | [ -w | -W ] [ -Z ]
첫째 형식은 파일을 이름으로, 둘째 형식은 파일 시스템을 i-node로 백업합니다. 5.3의 구문에는 -O, -Z, -n이 없습니다.
설명
backup 명령은 자기 테이프나 디스켓 같은 백업 매체에 파일의 사본을 만듭니다. 사본은 두 가지 백업 형식 가운데 하나입니다.
-i플래그로 특정 파일을 이름으로 백업- Level과 FileSystem 매개변수로 파일 시스템 전체를 i-node로 백업
매개변수 없이 실행하면 루트 파일 시스템을 /dev/rfd0 장치에 수준 9 i-node 백업합니다. 기본 구문은 -9uf/dev/rfd0 /dev/rhd4입니다.
기본 백업 장치는 /dev/rfd0입니다. 백업 장치에 맞지 않는 플래그를 주면 오류 메시지를 보여 주고 백업을 계속합니다.
백업 하나가 여러 볼륨에 걸칠 수 있습니다.
참고:
backup을 실행하면 출력 매체에 있던 내용을 모두 잃습니다.- 백업 중에 파일이 바뀌면 아카이브의 데이터 무결성이 깨질 수 있습니다. 백업하는 동안 시스템 활동을 줄입니다.
- 장치 블록 크기가 0인 테이프에 백업하면, 기본 쓰기 크기를 쓰지 않았을 때 복원이 어려울 수 있습니다. 블록 크기가 0이면
restore가 기본 쓰기 크기를 읽을 수 있으므로-b를 주지 않는 것이 좋습니다. 기본과 다른-b를 썼다면 복원할 때restore -b에 같은 값을 줘야 합니다. - (6.1) 논리 볼륨을 백업하려 하지 않습니다.
이름으로 백업
-i를 씁니다. 백업할 파일 이름을 표준 입력에서 읽습니다.
파일 유형은 특수 파일, 일반 파일, 디렉터리일 수 있습니다. 디렉터리면 디렉터리 자체만 백업하고, 그 안의 파일은 따로 지정하지 않으면 백업하지 않습니다.
참고:
- 파일은 아카이브의 경로 이름 그대로 복원됩니다. 어느 경로에서든 복원할 수 있는 백업을 만들려면 전체 경로 이름을 씁니다.
- 여러 볼륨이 필요한 파일을 백업할 때는 키보드로 파일 이름을 입력하지 말고 파일에서 파이프나 리디렉션으로 넘깁니다. 키보드로 입력하다 새 테이프나 디스켓이 필요해지면 입력했지만 아직 백업하지 않은 이름을 잃습니다. 키보드로 입력하려면 앞 파일의 아카이브 메시지(문자
a와 파일 이름)가 나온 뒤 다음 이름을 입력합니다. -p를 주면 2GB보다 작은 파일만 압축합니다.
i-node로 파일 시스템 백업
-Level과 FileSystem 매개변수를 줍니다. -u와 함께 쓰면 -Level로 파일 시스템마다 증분 백업 계층을 유지할 수 있습니다. -u를 주고 -Level을 n으로 하면 n-1 수준 백업 이후 바뀐 파일만 백업합니다. 증분 백업의 날짜, 시각, 수준은 /etc/dumpdates에 기록합니다. 수준은 0~9이며, 수준 0은 파일 시스템의 모든 파일을 백업합니다. /etc/dumpdates에 그 파일 시스템의 기록이 없으면 어떤 수준을 주든 모든 파일을 백업합니다.
FileSystem은 물리 장치 이름(블록이나 raw 이름)이나 파일 시스템을 마운트한 디렉터리 이름입니다. 기본은 루트(/) 파일 시스템입니다.
i-node 백업을 하려면 파일 시스템 장치(예: /dev/hd4)를 읽을 권한이나 Backup 권한이 있어야 합니다.
참고:
- i-node로 백업하기 전에 파일 시스템 마운트를 풀어야 합니다. 마운트된 파일 시스템을 백업하면 경고를 보여 주고 계속하지만, 백업 중에 바뀐 내용 때문에 불일치가 생길 수 있습니다.
- i-node 백업은 uid나 gid가 65535보다 큰 파일의 uid·gid를 잘라 냅니다. 복원하면 다른 값이 될 수 있으므로, 그런 파일은 늘 이름으로 백업합니다.
- i-node 백업은 JFS와 (6.1) JFS2 파일 시스템만 할 수 있습니다. 다른 파일 시스템은 이름으로 백업하거나
pax,tar,cpio같은 다른 아카이브 명령을 씁니다. (6.1) 블록 크기가 512바이트가 아닌 디스크에 있는 파일 시스템도 i-node 백업을 지원하지 않으므로 다른 아카이브 명령을 씁니다. - (6.1) 암호화 파일 시스템을 백업하려면
-Z가 꼭 필요합니다.
영어 원문
The backup command creates copies of your files on a backup medium, such as a magnetic tape or diskette. The copies are in one of the two backup formats:
Specific files backed up by name using the
-iflag.Entire file system backed up by i-node using the Level and FileSystem parameters.
If you issue the backup command without any parameters, it defaults to a level 9 i-node backup of the root file system to the /dev/rfd0 device. The default syntax is: -9uf/dev/rfd0 /dev/rhd4
The default backup device is /dev/rfd0. If flags are specified that are not appropriate for the specified backup device, the backup command displays an error message and continues with the backup.
A single backup can span multiple volumes.
Notes:
Running the backup command results in the loss of all material previously stored on the selected output medium.
Data integrity of the archive may be compromised if a file is modified during system backup. Keep system activity at a minimum during the system backup procedure.
If a backup is made to a tape device with the device block size set to 0, it might be difficult to restore data from the tape unless the default write size was used with the backup command. The default write size for the backup command can be read by the restore command when the tape device block size is 0. In other words, the
-bflag should not be specified when the tape device block size is 0. If the-bflag of the backup command is specified and is different from the default size, the same size must be specified with the-bflag of the restore command when the archived files are restored from the tape.Do not attempt to back up a logical volume.
Backing Up Files by Name
To back up by name, use the -i flag. The backup command reads standard input for the names of the files to be backed up.
File types can be special files, regular files, or directories. When the file type is a directory, only the directory is backed up. The files under the directory are not backed up, unless they are explicitly specified.
Notes:
Files are restored using the same path names as the archived files. Therefore, to create a backup that can be restored from any path, use full path names for the files that you want to back up.
When backing up files that require multiple volumes, do not enter the list of file names from the keyboard. Instead, pipe or redirect the list from a file to the backup command. When you enter the file names from the keyboard and the backup process needs a new tape or diskette, the command "loses" any file names already entered but not yet backed up. To avoid this problem, enter each file name only after the archived message for the previous file has been displayed. The archived message consists of the character
afollowed by the file name.If you specify the
-pflag, only files of less than 2GB are packed.
Backing Up File Systems by i-node
To back up a file system by i-node, specify the -Level and FileSystem parameters. When used in conjunction with the -u flag, the -Level parameter provides a method of maintaining a hierarchy of incremental backups for each file system. Specify the -u flag and set the -Level parameter to n to back up only those files that have been modified since the n-1 level backup. Information regarding the date, time, and level of each incremental backup is written to the /etc/dumpdates file. The possible backup levels are 0 to 9. A level 0 backup archives all files in the file system. If the /etc/dumpdates file contains no backup information for a particular file system, specifying any level causes all files in that file system to be archived.
The FileSystem parameter can specify either the physical device name (block or raw name) or the name of the directory on which the file system is mounted. The default file system is the root (/) file system.
Users must have read access to the file system device (such as /dev/hd4) or have Backup authorization in order to perform backups by i_node.
Notes:
You must first unmount a file system before backing it up by i-node. If you attempt to back up a mounted file system, a warning message is displayed. The backup command continues, but the created backup may contain inconsistencies because of changes that may have occurred in the file system during the backup operation.
Backing up file systems by i-node truncates the uid or gid of files having a uid or gid greater than 65535. When restored, these files may have different values for the uid and gid attributes. To retain the values correctly, always back up by name files having a uid or gid greater than 65535.
You can archive only JFS (Journaled File System) or JFS2 file systems when backing up by i-node. Back up any non-JFS or JFS2 file systems by file name or by using other archive commands, such as the pax, tar, or cpio command. In addition, backing up by i-node is not supported for file-systems located on disks that do not have a block-size of 512 bytes. These file-systems must be backed up using one of the other archive commands, such as the pax, tar, or cpio command.
The
-Zflag is mandatory for backing up encrypted file systems.
플래그
| 플래그 | 설명 |
|---|---|
-b Number |
한 번에 쓸 블록 수. 이름 백업은 512바이트, i-node 백업은 1024바이트 블록입니다. 테이프에 쓸 때 기본은 이름 백업 100, i-node 백업 32이며, 쓰기 크기는 각각 51200(100 × 512), 32768(32 × 1024)입니다. 쓰기 크기는 테이프 물리 블록 크기의 배수여야 합니다. 디스켓에 쓸 때는 무시하고 늘 트랙 단위로 씁니다. |
-c |
테이프가 9트랙이 아니라 카트리지임을 지정합니다. |
-e RegularExpression |
정규식에 맞는 이름의 파일은 압축하지 않습니다. 정규식은 검색 패턴의 문자열을 정의하는 문자, 메타 문자, 연산자의 집합이며 와일드카드 문자열일 수도 있습니다. -p를 줄 때만 적용됩니다. |
-E { force, ignore, warn } |
이름 백업에서 익스텐트 속성 처리. force는 파일의 고정 익스텐트 크기나 공간 예약을 보존할 수 없으면 그 파일의 백업을 실패시킴, ignore는 오류를 무시, warn은 경고를 보여 줌(기본). |
-f Device |
출력 장치. 경로 이름(예: /dev/rmt0)으로 주며, -(빼기)면 표준 출력으로 보내 dd 등으로 파이프할 수 있습니다. 장치 범위를 /dev/deviceXXX-YYY(XXX가 YYY보다 작음, 예: /dev/rfd0-3) 형식으로 줄 수도 있습니다. 범위의 장치는 모두 같은 종류이고 테이프면 물리 블록 크기가 같아야 합니다. 범위의 장치를 차례로 쓰고, 다 쓰면 멈추고 새 볼륨을 요청합니다. |
-i |
표준 입력에서 파일을 읽어 이름으로 백업합니다. 상대 경로면 복원할 때 그때의 현재 디렉터리 기준으로, 전체 경로면 같은 경로로 복원됩니다. |
-l Number |
(소문자 L) 디스켓에서 쓸 전체 블록 수를 제한합니다. 디스켓 트랙당 섹터 수의 0이 아닌 배수여야 하며 이름 백업에만 씁니다(format 명령 참고). |
-L Length |
테이프 길이(바이트). -c, -d, -s보다 우선합니다. b(블록, 512바이트), k(1024바이트), m(1024KB), g(1024MB) 접미사를 쓸 수 있으며, 2GB 테이프는 -L 2g입니다. i-node 백업에만 씁니다. |
-n snapshotName |
(6.1) 백업할 내부 스냅숏 이름. 스냅숏이 든 파일 시스템이 마운트되어 있어야 하며, i-node 백업에만 씁니다. |
-o |
Version 2와 호환되는 이름 백업을 만듭니다. Version 2보다 높은 버전이 만든 이름 백업은 Version 2에서 복원할 수 없으므로 필요합니다. Version 2에 비해 너무 큰 사용자 ID·그룹 ID 같은 속성을 가진 파일은 백업하지 않고 메시지를 보여 줍니다. |
-O |
(6.1) Trusted AIX 보안 속성 없이 백업합니다. Trusted AIX 시스템에만 해당합니다. |
-p |
파일을 아카이브하기 전에 압축합니다. 2GB보다 작은 파일만 압축합니다. 파일 시스템을 쓰지 않는 상태로 두는 것이 좋으며, 쓰는 중에도 할 수 있지만 백업 중에 파일이 바뀌면 실패를 보고할 가능성이 커집니다. 자체 압축하는 테이프 장치에는 생략할 수 있습니다. |
-q |
이동식 매체가 준비되었음을 뜻합니다. 매체를 준비하고 Enter를 누르라는 질문 없이 진행합니다. 첫 볼륨에만 적용되고 다음 볼륨은 묻습니다. 이름 백업에만 씁니다. |
-U |
ACL과 이름 있는 확장 속성을 백업합니다. 없으면 AIXC ACL과 PCL만 일반 파일 데이터와 함께 들어가며, NFS4 ACL은 기본으로 AIXC로 바뀝니다. |
-u |
/etc/dumpdates에 파일 시스템의 raw 장치 이름과 백업 시각, 날짜, 수준을 기록합니다. 증분 백업에는 반드시 쓰며, i-node 백업에만 씁니다. |
-v |
백업 정보를 더 보여 줍니다. 아카이브에 들어간 파일 크기(바이트)와 끝에 그 합계를 보여 줍니다. 디렉터리는 0, 심볼릭 링크는 링크 크기, 하드 링크는 파일 크기(하드 링크는 그렇게 아카이브됨), 블록·문자 장치는 0으로 나옵니다. 없으면 파일 이름만 보여 줍니다. 이름 백업에만 씁니다. |
-w |
지금은 쓰지 않습니다. 주면 다른 플래그는 적용하지 않습니다. |
-W |
/etc/dumpdates의 파일 시스템마다 가장 최근 백업 날짜와 수준을 보여 줍니다. 주면 다른 플래그는 적용하지 않습니다. |
-Level |
백업 수준(0~9). 기본 9. |
-Z |
(6.1) 모든 파일, 디렉터리, 파일 시스템의 EFS(암호화 파일 시스템) 정보를 백업합니다. -Z로 만든 아카이브는 AIX 6.1 이후에서만 복원할 수 있습니다. |
영어 원문
-bNumber — For backups by name, specifies the number of 512-byte blocks; for backups by i-node, specifies the number of 1024-byte blocks to write in a single output operation. When the backup command writes to tape devices, the default is 100 for backups by name and 32 for backups by i-node. The write size is the number of blocks multiplied by the block size. The default write size for the backup command writing to tape devices is 51200 (100*512) for backups by name and 32768 (32*1024) for backups by i-node. The write size must be an even multiple of the tape's physical block size. The value of the-bflag is always ignored when the backup command writes to diskette. In this case, the command always writes in clusters that occupy a complete track.-c— Specifies that the tape is a cartridge, not a nine-track.-eRegularExpression — Specifies that the files with names matching the regular expression are not to be packed. A regular expression is a set of characters, meta characters, and operators that define a string or group of strings in a search pattern. It can also be a string containing wildcard characters and operations that define a set of one or more possible strings. The-eflag is applied only when the-pflag is specified.-E— For backups by name, the-Eoption requires one of the following arguments. If you omit the-Eoption, warn is the default behavior. force Fails the backup operation on a file if the fixed extent size or space reservation of the file cannot be preserved. ignore Ignores any errors in preserving extent attributes. warn Issues a warning if the space reservation or the fixed extent size of the file cannot be preserved.
| | | | | |
-fDevice — Specifies the output device. To send output to a named device, specify the Device variable as a path name (such as/dev/rmt0). To send output to the standard output device, specify a - (minus sign). The - (minus) feature enables you to pipe the output of the backup command to the dd command. You can also specify a range of archive devices. The range specification must be in the following format:/dev/deviceXXX-YYYwhere XXX and YYY are whole numbers, and XXX must always be less than YYY; for example,/dev/rfd0-3. All devices in the specified range must be of the same type. For example, you can use a set of 8mm, 2.3GB tapes or a set of 1.44MB diskettes. All tape devices must be set to the same physical tape block size. If the Device variable specifies a range, the backup command automatically goes from one device in the range to the next. After exhausting all of the specified devices, the backup command halts and requests that new volumes be mounted on the range of devices.-i— Specifies that files be read from standard input and archived by file name. If relative path names are used, files are restored (with the restore command) relative to the current directory at restore time. If full path names are used, files are restored to those same names.-lNumber — (lowercase L) Limits the total number of blocks to use on the diskette device. The value specified must be a non-zero multiple of the number of sectors per diskette track. This option applies to by-name backups only. See the format command for information about sectors per diskette track.-LLength — Specifies the length of the tape in bytes. This flag overrides the-c,-d, and-sflags. You can specify the size with a suffix of b, k, m, or g to represent Blocks (512 bytes), Kilo (1024 bytes), Mega (1024 Kilobytes), or Giga (1024 Megabytes), respectively. To represent a tape length of 2 Gigabytes, enter-L 2g. Note: Use the-Lflag for i-node backups only.-nsnapshotName — Specifies the name of the internal snapshot to back up. You must mount the file system containing the snapshot. The-nflag is used for backups by the i-node only.-o— Creates a Version 2-compatible backup by name. This flag is required for compatibility with Version 2 systems because backups by name that are created by a version higher than 2 cannot be restored on Version 2 systems. To create a Version 2-compatible backup by name, use the-oflag along with other flags required for backups by name. Files with attributes and values, such as user IDs and group IDs, that are too large for Version 2 systems will not be backed up. A message is displayed for each such file and each value that is too large.-O— Creates a non-Trusted AIX security attributes backup. Note: The-Oflag only applies for systems running Trusted AIX.-p— Specifies that the files be packed, or compressed, before they are archived. Only files of less than 2GB are packed. Note: While using this option, it is recommended to keep the file system inactive. This option can be used on an active file system. However, if a file is modified at the time it is being backed up, there is an increased chance of the backup reporting a failure. You can omit this option while backing up to a tape device, which performs compression.-q— Indicates that the removable medium is ready to use. When you specify the-qflag, the backup command proceeds without prompting you to prepare the backup medium and press the Enter key to continue. This option applies only to the first volume; you are prompted for subsequent volumes. The-qflag applies only to backups by name.-U— Specifies to backup any ACLs or named extended attributes. Without this option the image will include only AIXC ACLs and PCLs in the archive along with the other regular file data. For files containing NFS4 ACLs, conversion to AIXC will happen by default during archival.-u— Updates the /etc/dumpdates file with the raw device name of the file system and the time, date, and level of the backup. You must specify the-uflag if you are making incremental backups. The-uflag applies only to backups by i-node.-v— Causes the backup command to display additional information about the backup. When using the-vflag, the size of the file as it exists on the archive is displayed in bytes. Additionally, a total of these file sizes is displayed when all files have been processed. Directories are listed with a size of 0. Symbolic links are listed with the size of the symbolic link. Hard links are listed with the size of the file, which is how hard links are archived. Block and character devices, if they were backed up, are listed with a size of 0. When the-vflag is not specified, the backup command displays only the names of the files being archived. This option is used only when backing up by file name.-w— Currently disabled. If the-wflag is specified, no other flags are applied.-W— Displays, for each file system in the /etc/dumpdates file, the most recent backup date and level. If the-Woption is specified, no other flags are applied.-Level — Specifies the backup level (0 to 9). The default level is 9.-Z— Backs up the Encrypted File System (EFS) information for all of the files, directories, and file systems. The EFS information is extracted by default. Note: Archives created with-Zoption can be restored only on AIX 6.1 or later releases.
보안
Trusted AIX 시스템에서는 aix.fs.manage.backup 권한이 있는 사용자만 실행할 수 있습니다.
(6.1) RBAC와 Trusted AIX 사용자: 이 명령은 특권 작업을 할 수 있으며 특권 사용자만 할 수 있습니다. 권한과 특권은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다.
영어 원문
On Trusted AIX systems, only users with the aix.fs.manage.backup authorization can run the backup command.
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
종료 상태
| 값 | 뜻 |
|---|---|
| 0 | 성공 |
| 0보다 큼 | 오류 |
영어 원문
This command returns the following exit values:
- 0 — Successful completion.
>0— An error occurred.
예제
/home디렉터리의 모든 파일과 하위 디렉터리를 전체 경로로 백업합니다.find가 전체 경로 목록을 만들고, 파이프로backup -i의 표준 입력에 넘기고,-f로/dev/rmt0테이프에 씁니다. 전체 경로로 백업했으므로 같은 경로로 복원됩니다.
find /home -print | backup -i -f /dev/rmt0
/home/mike의 모든 파일과 하위 디렉터리를 상대 경로로 백업합니다.find가 만든 이름은./로 시작하므로 복원할 때 현재 디렉터리에 씁니다.-v는 정보를 더 보여 주고, 파일은 기본 장치/dev/rfd0에 씁니다.
cd /home/mike
find . -print | backup -i -v -q
- 그 밖의 예:
| 명령 | 하는 일 |
|---|---|
backup -0 -u -f /dev/rmt0 / |
/(루트) 파일 시스템의 모든 파일을 수준 0으로 백업하고 /etc/dumpdates를 갱신 |
backup -1 -u -f /dev/rmt0 / |
마지막 수준 0 백업 이후 바뀐 루트 파일 시스템의 파일을 백업. 수준 0 기록이 없으면 모든 파일을 백업 |
확장 속성과 ACL을 포함한 아카이브를 만들고, (6.1) Trusted AIX 보안 속성 없이 아카이브를 만듭니다.
ls /etc/passwd | backup -ivUf arch.bk
ls /etc/passwd | backup -ivOf arch.bk
자주 쓰는 형태:
find /etc /home -print | backup -iqvf /backup/etc_home.bk
backup -W # 파일 시스템별 마지막 백업
restore -Tvf /backup/etc_home.bk # 내용 확인
영어 원문
- To backup all the files and subdirectories in the
/homedirectory using full path names, enter:
find /home -print | backup -i -f /dev/rmt0
The -i flag specifies that files will be read from standard input and archived by file name. The find command generates a list of all the files in the /home directory. The files in this list are full path names. The | (pipe symbol) causes this list to be read from standard input by the backup command. The -f flag directs the backup command to write the files to the /dev/rmt0 tape device. Because the files are archived using full path names, they will be written to the same paths when restored.
- To backup all the files and subdirectories in the
/home/mikedirectory using relative path names, enter:
cd /home/mike
find . -print | backup -i -v -q
Each file name in the list generated by the find command is preceded by ./ (dot, slash). Because the files are backed up using relative path names, they will be written to the current directory when restored. The -v flag causes the backup command to display additional information about the backup. The files are written to the default backup device /dev/rfd0.
- To backup the / (root) file system, enter:
backup -0 -u -f /dev/rmt0 /
The 0 level specifies that all the files in the / (root) file system be backed up. The -u flag causes the backup command to update the /etc/dumpdates file for this backup.
- To backup all the files in the / (root) file system that have been modified since the last level 0 backup, enter:
backup -1 -u -f /dev/rmt0 /
If the /etc/dumpdates file does not have an entry for a level 0 backup of the / (root) system, all the files in the file system are backed up. 5. To create an archive with Extended Attributes and ACLs, enter: ls /etc/passwd | backup -ivUf arch.bk
- To create an archive without Trusted AIX security attributes, enter:
ls /etc/passwd | backup -ivOf arch.bk
파일
| 파일 | 설명 |
|---|---|
/etc/filesystems |
파일 시스템 마운트 정보 |
/etc/dumpdates |
i-node 증분 백업 기록 |
/dev/rfd0 |
기본 백업 장치 |
/dev/rhd4 |
기본 파일 시스템(루트)이 있는 장치 |
/usr/sbin/backup |
backup 명령 |
영어 원문
- /etc/filesystems — Contains file system mount information.
- /etc/dumpdates — Specifies log for incremental by i-node backups.
- /dev/rfd0 — Specifies default backup device.
- /dev/rhd4 — Specifies device where the default file system (root) is located.
- /usr/sbin/backup — Contains the backup command.
Related information:
- rdump command
- restore command
- Mounting command
- System Management Interface Tool (SMIT)
- Trusted AIX® chapter in the AIX Version 7.1 Security
리눅스(GNU)와 다른 점
리눅스에는 mksysb처럼 부팅 가능한 시스템 이미지를 만드는 표준 명령이 없어 ReaR(Relax-and-Recover)나 Clonezilla 같은 도구를 쓰고, 볼륨 그룹 구조는 vgcfgbackup·vgcfgrestore로 저장·복원합니다. 파일 백업은 tar, rsync, ext 계열의 dump·restore, XFS의 xfsdump·xfsrestore를 씁니다. 백업 목록 보기는 tar -tvf, 일부 파일 복원은 tar -xvf 백업 경로입니다. AIX backup의 i-node 백업과 /etc/dumpdates는 ext 계열 dump -0u와 거의 같고, 이름 백업은 find | cpio -o에 가깝습니다.