个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:BackupYourSystem/TAR/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:BackupYourSystem/TAR/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:BackupYourSystem/TAR/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
==== Backup over a network ==== * It is possible to use netcat to transfer the backup between computers. *On the receiving end you'll setup netcat to write the backup file like this:<pre><nowiki> nc -l -p 1024 > backup.tar.bz2 </nowiki></pre> * Then you pipe the tar command without the <code><nowiki>f</nowiki></code> flag through netcat on the sending end like this:<pre><nowiki> tar -cvj <all those other options> / | nc -q 0 <receiving host> 1024 </nowiki></pre> * In the above commands 1024 is just a random port number, anything from 1024 and up should work. * If all goes well the backup will be piped through the network without touching the file system being read. * You can also use SSH: <pre><nowiki> tar zcvf - /home | ssh <backuphost> "( cat > home_bkp.tar.gz )" </nowiki></pre> * https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=info.png In this example: * The directory to backup is ''/home'' * The backup destination is ''home_bkp.tar.gz'' on the machine called <backuphost>. * The hyphen before ''/home'' tells tar to send output to stdout rather than to a file. * Adding the 'p' option to tar would preserve file permissions.
返回至
UbuntuHelp:BackupYourSystem/TAR/zh
。