当前位置: 技术问答>linux和unix
UNIX系统如何备份文件
来源: 互联网 发布时间:2016-04-15
本文导语: unix系统不像windows系统分系统分区和其它分区,系统坏了可以格式化系统分区,重装而不影响所有的文档资料之类的。unix系统没有这样分,重新格式化重装所有东西都没了,这个怎么处理的? | ...
unix系统不像windows系统分系统分区和其它分区,系统坏了可以格式化系统分区,重装而不影响所有的文档资料之类的。unix系统没有这样分,重新格式化重装所有东西都没了,这个怎么处理的?
|
如果你运行一下:
[allen@tecra:uts]mount
/ on /dev/dsk/c1t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=6c0000 on Tue Sep 23 09:11:13 2008
/devices on /devices read/write/setuid/devices/dev=4b40000 on Tue Sep 23 09:11:01 2008
/dev on /dev read/write/setuid/devices/dev=4b80000 on Tue Sep 23 09:11:01 2008
/system/contract on ctfs read/write/setuid/devices/dev=4bc0001 on Tue Sep 23 09:11:01 2008
/proc on proc read/write/setuid/devices/dev=4c00000 on Tue Sep 23 09:11:01 2008
/etc/mnttab on mnttab read/write/setuid/devices/dev=4c40001 on Tue Sep 23 09:11:01 2008
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4c80001 on Tue Sep 23 09:11:01 2008
/system/object on objfs read/write/setuid/devices/dev=4cc0001 on Tue Sep 23 09:11:01 2008
/etc/dfs/sharetab on sharefs read/write/setuid/devices/dev=4d00001 on Tue Sep 23 09:11:01 2008
/lib/libc.so.1 on /usr/lib/libc/libc_hwcap1.so.1 read/write/setuid/devices/dev=6c0000 on Tue Sep 23 09:11:11 2008
/dev/fd on fd read/write/setuid/devices/dev=4e80001 on Tue Sep 23 09:11:13 2008
/tmp on swap read/write/setuid/devices/xattr/dev=4c80002 on Tue Sep 23 09:11:15 2008
/var/run on swap read/write/setuid/devices/xattr/dev=4c80003 on Tue Sep 23 09:11:15 2008
你可以发现不同的物理文件系统mount在不同的节点上,这样一个物理文件系统坏了,并不影响另外的文件系统。
另外,Solaris的ZFS文件系统是一个非常优秀的文件系统,可以保证文件的完整性,同时可以建立snapshot,以便恢复文件系统。
[allen@tecra:uts]mount
/ on /dev/dsk/c1t0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=6c0000 on Tue Sep 23 09:11:13 2008
/devices on /devices read/write/setuid/devices/dev=4b40000 on Tue Sep 23 09:11:01 2008
/dev on /dev read/write/setuid/devices/dev=4b80000 on Tue Sep 23 09:11:01 2008
/system/contract on ctfs read/write/setuid/devices/dev=4bc0001 on Tue Sep 23 09:11:01 2008
/proc on proc read/write/setuid/devices/dev=4c00000 on Tue Sep 23 09:11:01 2008
/etc/mnttab on mnttab read/write/setuid/devices/dev=4c40001 on Tue Sep 23 09:11:01 2008
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4c80001 on Tue Sep 23 09:11:01 2008
/system/object on objfs read/write/setuid/devices/dev=4cc0001 on Tue Sep 23 09:11:01 2008
/etc/dfs/sharetab on sharefs read/write/setuid/devices/dev=4d00001 on Tue Sep 23 09:11:01 2008
/lib/libc.so.1 on /usr/lib/libc/libc_hwcap1.so.1 read/write/setuid/devices/dev=6c0000 on Tue Sep 23 09:11:11 2008
/dev/fd on fd read/write/setuid/devices/dev=4e80001 on Tue Sep 23 09:11:13 2008
/tmp on swap read/write/setuid/devices/xattr/dev=4c80002 on Tue Sep 23 09:11:15 2008
/var/run on swap read/write/setuid/devices/xattr/dev=4c80003 on Tue Sep 23 09:11:15 2008
你可以发现不同的物理文件系统mount在不同的节点上,这样一个物理文件系统坏了,并不影响另外的文件系统。
另外,Solaris的ZFS文件系统是一个非常优秀的文件系统,可以保证文件的完整性,同时可以建立snapshot,以便恢复文件系统。