昨天有一套历史库需要备份后归档,采用连接磁带机归档的方式
考虑到可以使用小磁带备份节省资源,在aix上使用了tar
LINUX:
[oracle@S1PD37 dump]$ cd /tmp
[oracle@S1PD37 tmp]$ mkdir test
[oracle@S1PD37 tmp]$ cd test/
[oracle@S1PD37 test]$ ls
[oracle@S1PD37 test]$ touch test.linux
[oracle@S1PD37 test]$ ls -ltr
total 0
-rw-r--r-- 1 oracle oinstall 0 Oct 23 09:58 test.linux
[oracle@S1PD37 test]$
[oracle@S1PD37 test]$
[oracle@S1PD37 test]$ tar -cvf test.linux test.20121023
tar: test.20121023: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
[oracle@S1PD37 test]$
[oracle@S1PD37 test]$
[oracle@S1PD37 test]$ ls -ltr
total 12
-rw-r--r-- 1 oracle oinstall 10240 Oct 23 09:59 test.linux
AIX:
# pwd
/tmp/test
#
#
#
# touch test.txt
# ls
test.txt
# ls -ltr
total 0
-rw-r--r-- 1 root system 0 Oct 23 09:32 test.txt
# tar -cvf test.txt test20121023
tar: test20121023: A file or directory in the path name does not exist.
# ls
此时发现源文件已经不存在了。
# uname -a
AIX bwdev 3 5 00C1E5AE4C00
可以说是AIX的缺陷。