简体   繁体   English

我如何备份我的Linux系统

[英]How do I back up my Linux system

I am using Yocto distribution of Linux. 我正在使用Yocto Linux发行版。 And currently, I am looking to back-up my system following the guide: 目前,我希望按照指南备份我的系统:

http://ubuntuforums.org/showthread.php?t=35087 http://ubuntuforums.org/showthread.php?t=35087

The part I am having trouble with is that 我遇到麻烦的部分是

and go to the root of your filesystem (we use this in our example, but you can go anywhere you want your backup to end up, including remote or removable drives.) Code: cd / 并转到文件系统的根目录(我们在我们的示例中使用它,但您可以到任何您希望备份结束的地方,包括远程或可移动驱动器。)代码: cd /

How do I double-gaurantee that by typing cd , it will go to the very very top folder of ENTIRE linux system, and how do I double ensure that the back-up will back up ENTIRE THINGS of the linux system? 如何通过键入cd双重保护,它将进入ENTIRE linux系统的最顶层文件夹,如何双重确保备份将备份Linux系统的整体内容?

If you want to backup to your own harddrive, then it needs at least 50% free space. 如果要备份到自己的硬盘,则需要至少50%的可用空间。

Typically people do not backup all their binaries, but rather their data (the data that is in the /home directories) 通常人们不会备份他们的所有二进制文件,而是备份他们的数据(/ home目录中的数据)

sudo mkdir /homeBackups sudo mkdir / homeBackups

sudo cp -a /home /homeBackups/. sudo cp -a / home / homeBackups /。

sudo tar -cvf homeBackups.tar . sudo tar -cvf homeBackups.tar。

sudo gzip homeBackups.tar sudo gzip homeBackups.tar

Then store the final homeBackups.tar.gz somewhere safe. 然后将最终的homeBackups.tar.gz存储在安全的地方。 (done!) (做!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何制作当前系统的linux映像? - How do I make a linux image which is of my current system? 如何在Linux CentOS系统上清除主系统驱动器上的空间? - How do I clear space on my main system drive on a Linux CentOS system? 如何在 Linux 中跟踪系统调用? - How do I trace a system call in Linux? 如何设置我的Linux X终端以便Emacs可以访问256种颜色? - How do I set up my Linux X terminal so that Emacs has access to 256 colors? 我下载并安装了Linux bash配置文件,它彻底改变了我的终端。 如何切换回之前的个人资料? - I downloaded and installed linux bash profile and it completely changed my terminal. How do I switch back to the profile I had before? 如何防止并行代码耗尽所有可用的系统内存? - How do I prevent my parallel code using up all the available system memory? 如何将 output 文本重定向回 Linux 中的命令行? - How do I redirect output text back into the command line in Linux? 如何停止Linux系统中磁盘I / O的页面缓存? - How to stop page cache for disk I/O in my linux system? 我如何在没有Docker的情况下(在基础系统上)运行Linux任务? - How do I run Linux tasks without Docker (on the underlying system)? 如何使用linux内核一次进行多个系统调用? - How do I make many system calls at once with the linux kernel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM