Question & Answer
Question
How do I back up an AIX filesystem to a remote AIX server?
Answer
# rdump -u -0 -f dest_machine_name:device_path /mount_point_of_local_fsOr
# rdump -u -0 -f dest_machine_name:device_path /dev/lv_of_local_fsNotes for consideration:
1- User must have root authority to run this command
2- Filesystem should be unmounted.
3- Local logical Volume name or filesystem mount point can be used.
4- Remote machine should be configured to allow the root to log in without a password prompt
(rlogin ==> /.rhosts file).5- Remote device should exist in the remote machine (Use, or create an existing empty file
=> touch file).Example:
# hostnamecairo1
# df -m /mashfs
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/fslv00 256.00 132.00 1% 5 1% /mashfs# rdump -u -0 -f cairo2:/tmp/back.march /mashfs
rdump: The date of this level 0 backup is Fri Mar 31 13:17:31 CDT 2017.
rdump: The date of the last level 0 backup is the epoch.
rdump: Backing up /dev/rfslv00 (/mashfs) to /tmp/back.march on host cairo2.
rdump: 0511-251 The file system is still mounted; data may not be consistent.
Use the umount command to unmount the filesystem; then do the backup.
rdump: Mapping regular files. This is Pass 1.
rdump: Mapping directories. This is Pass 2.
rdump: There are an estimated 26 1k blocks.
rdump: Backing up directories. This is Pass 3.
rdump: Backing up regular files. This is Pass 4.
rdump: There are 17 1k blocks on 1 volumes.
rdump: There is a level 0 backup on Fri Mar 31 13:17:31 CDT 2017.
rdump: The backup is complete.# rsh cairo2# ls -l /tmp/back.march
rw-r--r-- 1 root system 393842768 Mar 31 13:11 /tmp/back.march# restore -Tq -f /tmp/back.march
The dump date is Fri Mar 31 13:17:31 CDT 2017.
Dumped from: Wed Dec 31 18:00:00 CST 1969.
2 .
3 ./db1
4 ./datafile
5 ./dirx
6 ./world
[..]
[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.3;6.1;7.1","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Was this topic helpful?
Document Information
Modified date:
14 November 2019
UID
isg3T1025072