ubuntu系统备份和还原_如何使用Aptik在Ubuntu中备份和还原您的应用程序和PPA

ubuntu系统备份和还原

ubuntu系统备份和还原

00_lead_image_aptik

If you need to reinstall Ubuntu or if you just want to install a new version from scratch, wouldn’t it be useful to have an easy way to reinstall all your apps and settings? You can easily accomplish this using a free tool called Aptik.

如果您需要重新安装Ubuntu,或者只想从头开始安装新版本,那么有一种简便的方法来重新安装所有应用程序和设置是否有用? 您可以使用名为Aptik的免费工具轻松完成此操作。

Aptik (Automated Package Backup and Restore), an application available in Ubuntu, Linux Mint, and other Debian- and Ubuntu-based Linux distributions, allows you to backup a list of installed PPAs (Personal Package Archives), which are software repositories, downloaded packages, installed applications and themes, and application settings to an external USB drive, network drive, or a cloud service like Dropbox.

Aptik(自动软件包备份和还原)是在Ubuntu,Linux Mint以及其他基于Debian和UbuntuLinux发行版中可用的应用程序,它允许您备份已安装的PPA(个人软件包档案)列表,这些PPA是已下载的软件存储库。程序包,已安装的应用程序和主题以及应用程序设置到外部USB驱动器,网络驱动器或Dropbox等云服务。

NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.

注意:当我们说要在本文中键入某些内容并且文本周围有引号时,请不要键入引号,除非我们另外指定。

To install Aptik, you must add the PPA. To do so, press Ctrl + Alt + T to open a Terminal window. Type the following text at the prompt and press Enter.

要安装Aptik,您必须添加PPA。 为此,请按Ctrl + Alt + T打开“终端”窗口。 在提示符下键入以下文本,然后按Enter。

sudo apt-add-repository –y ppa:teejee2008/ppa

sudo apt-add-repository –y ppa:teejee2008 / ppa

Type your password when prompted and press Enter.

出现提示时输入密码,然后按Enter。

01_command_to_add_repository

Type the following text at the prompt to make sure the repository is up-to-date.

在提示符下键入以下文本,以确保存储库是最新的。

sudo apt-get update

sudo apt-get更新

02_update_command

When the update is finished, you are ready to install Aptik. Type the following text at the prompt and press Enter.

更新完成后,就可以安装Aptik了。 在提示符下键入以下文本,然后按Enter。

sudo apt-get install aptik

sudo apt-get install aptik

NOTE: You may see some errors about packages that the update failed to fetch. If they are similar to the ones listed on the following image, you should have no problem installing Aptik.

注意:您可能会看到有关更新无法获取的程序包的一些错误。 如果它们与下图中列出的相似,则安装Aptik应该没有问题。

03_command_to_install_aptik

The progress of the installation displays and then a message displays saying how much disk space will be used. When asked if you want to continue, type a “y” and press Enter.

显示安装进度,然后显示一条消息,说明将使用多少磁盘空间。 当询问您是否要继续时,键入“ y”,然后按Enter。

04_do_you_want_to_continue

When the installation if finished, close the Terminal window by typing “Exit” and pressing Enter, or by clicking the “X” button in the upper-left corner of the window.

安装完成后,请通过键入“退出”并按Enter或单击窗口左上角的“ X”按钮来关闭“终端”窗口。

05_closing_terminal_window

Before running Aptik, you should set up a backup directory on a USB flash drive, a network drive, or on a cloud account, such as Dropbox or Google Drive. For this example, will will use Dropbox.

在运行Aptik之前,您应该在USB闪存驱动器,网络驱动器或云帐户(例如Dropbox或Google Drive)上设置备份目录。 对于此示例,将使用Dropbox。

06_creating_backup_folder

Once your backup directory is set up, click the “Search” button at the top of the Unity Launcher bar.

设置备份目录后,单击Unity Launcher栏顶部的“搜索”按钮。

07_opening_search

Type “aptik” in the search box. Results of the search display as you type. When the icon for Aptik displays, click on it to open the application.

在搜索框中输入“ aptik”。 输入时显示搜索结果。 当显示Aptik的图标时,单击它以打开应用程序。

08_starting_aptik

A dialog box displays asking for your password. Enter your password in the edit box and click “OK.”

出现一个对话框,要求您输入密码。 在编辑框中输入密码,然后单击“确定”。

09_entering_password

The main Aptik window displays. Select “Other…” from the “Backup Directory” drop-down list. This allows you to select the backup directory you created.

显示Aptik主窗口。 从“备份目录”下拉列表中选择“其他”。 这使您可以选择创建的备份目录。

NOTE: The “Open” button to the right of the drop-down list opens the selected directory in a Files Manager window.

注意:下拉列表右侧的“打开”按钮可在“文件管理器”窗口中打开所选目录。

10_selecting_other_for_directory

On the “Backup Directory” dialog box, navigate to your backup directory and then click “Open.”

在“备份目录”对话框上,导航到您的备份目录,然后单击“打开”。

NOTE: If you haven’t created a backup directory yet, or you want to add a subdirectory in the selected directory, use the “Create Folder” button to create a new directory.

注意:如果尚未创建备份目录,或者要在所选目录中添加子目录,请使用“创建文件夹”按钮创建一个新目录。

11_choosing_directory

To backup the list of installed PPAs, click “Backup” to the right of “Software Sources (PPAs).”

要备份已安装的PPA列表,请单击“软件源(PPA)”右侧的“备份”。

12_clicking_backup_software_sources

The “Backup Software Sources” dialog box displays. The list of installed packages and the associated PPA for each displays. Select the PPAs you want to backup, or use the “Select All” button to select all the PPAs in the list.

显示“备份软件源”对话框。 每个显示的已安装软件包列表和关联的PPA。 选择要备份的PPA,或使用“全选”按钮选择列表中的所有PPA。

13_selecting_all_software_sources

Click “Backup” to begin the backup process.

单击“备份”开始备份过程。

14_clicking_backup_for_all_software_sources

A dialog box displays when the backup is finished telling you the backup was created successfully. Click “OK” to close the dialog box.

备份完成后,将显示一个对话框,告诉您备份已成功创建。 单击“确定”关闭对话框。

A file named “ppa.list” will be created in the backup directory.

将在备份目录中创建一个名为“ ppa.list”的文件。

15_closing_finished_dialog_software_sources

The next item, “Downloaded Packages (APT Cache)”, is only useful if you are re-installing the same version of Ubuntu. It backs up the packages in your system cache (/var/cache/apt/archives). If you are upgrading your system, you can skip this step because the packages for the new version of the system will be newer than the packages in the system cache.

下一项“ Downloaded Packages(APT Cache)”仅在您重新安装相同版本的Ubuntu时才有用。 它将备份系统缓存中的软件包(/ var / cache / apt / archives)。 如果要升级系统,则可以跳过此步骤,因为新版本系统的软件包将比系统缓存中的软件包新。

Backing up downloaded packages and then restoring them on the re-installed Ubuntu system will save time and Internet bandwidth when the packages are reinstalled. Because the packages will be available in the system cache once you restore them, the download will be skipped and the installation of the packages will complete more quickly.

备份下载的软件包,然后将其还原到重新安装的Ubuntu系统上,可以在重新安装软件包时节省时间和Internet带宽。 由于还原后,这些软件包将在系统缓存中可用,因此下载将被跳过,并且软件包的安装将更快地完成。

If you are reinstalling the same version of your Ubuntu system, click the “Backup” button to the right of “Downloaded Packages (APT Cache)” to backup the packages in the system cache.

如果要重新安装相同版本的Ubuntu系统,请单击“下载的软件包(APT缓存)”右侧的“备份”按钮,以将软件包备份到系统缓存中。

NOTE: When you backup the downloaded packages, there is no secondary dialog box. The packages in your system cache (/var/cache/apt/archives) are copied to an “archives” directory in the backup directory and a dialog box displays when the backup is finished, indicating that the packages were copied successfully.

注意:备份下载的软件包时,没有第二个对话框。 系统缓存(/ var / cache / apt / archives)中的软件包将复制到备份目录中的“ archives”目录中,并且在备份完成后将显示一个对话框,指示软件包已成功复制。

16_downloaded_packages_backed_up

There are some packages that are part of your Ubuntu distribution. These are not checked, since they are automatically installed when you install the Ubuntu system. For example, Firefox is a package that is installed by default in Ubuntu and other similar Linux distributions. Therefore, it will not be selected by default.

Ubuntu发行版中包含一些软件包。 这些未选中,因为在安装Ubuntu系统时会自动安装它们。 例如,Firefox是默认情况下安装在Ubuntu和其他类似Linux发行版中的软件包。 因此,默认情况下不会选择它。

Packages that you installed after installing the system, such as the package for the Chrome web browser or the package containing Aptik (yes, Aptik is automatically selected to back up), are selected by default. This allows you to easily back up the packages that are not included in the system when installed.

默认情况下会选择安装系统后安装的软件包,例如Chrome Web浏览器的软件包或包含Aptik的软件包(是的,将自动选择Aptik进行备份)。 这样一来,您可以轻松备份系统中未包含的软件包。

Select the packages you want to back up and de-select the packages you don’t want to backup. Click “Backup” to the right of “Software Selections” to back up the selected top-level packages.

选择您要备份的软件包,然后取消选择您不想备份的软件包。 单击“软件选择”右侧的“备份”以备份选定的顶级程序包。

NOTE: Dependency packages are not included in this backup.

注意:依赖性程序包不包括在此备份中。

18_clicking_backup_for_software_selections

Two files, named “packages.list and “packages-installed.list”, are created in the backup directory and a dialog box displays indicating that the backup was created successfully. Click “OK” to close the dialog box.

在备份目录中创建了两个名为“ packages.list 和“ packages-installed.list”的文件,并显示一个对话框,指示已成功创建备份。 单击“确定”关闭对话框。

NOTE: The “packages-installed.list” file lists all the packages. The “packages.list” file also lists all the packages, but indicates which ones were selected.

注意:“ packages-installed.list”文件列出了所有软件包。 “ packages.list”文件还列出了所有软件包,但指出了选择了哪些软件包。

19_software_selections_backed_up

To backup settings for installed applications, click the “Backup” button to the right of “Application Settings” on the main Aptik window. Select the settings you want to back up and click “Backup”.

要备份已安装应用程序的设置,请在Aptik主窗口中单击“应用程序设置”右侧的“备份”按钮。 选择要备份的设置,然后单击“备份”。

NOTE: Click the “Select All” button if you want to back up all application settings.

注意:如果要备份所有应用程序设置,请单击“全选”按钮。

20_backing_up_app_settings

The selected settings files are zipped into a file called “app-settings.tar.gz”.

所选设置文件被压缩到名为“ app-settings.tar.gz”的文件中。

21_zipping_settings_files

When the zipping is complete, the zipped file is copied to the backup directory and a dialog box displays telling you that the backups were created successfully. Click “OK” to close the dialog box.

压缩完成后,将压缩文件复制到备份目录,并显示一个对话框,告诉您备份已成功创建。 单击“确定”关闭对话框。

22_app_settings_backed_up

Themes from the “/usr/share/themes” directory and icons from the “/usr/share/icons” directory can also be backed up. To do so, click the “Backup” button to the right of “Themes and Icons”. The “Backup Themes” dialog box displays with all the themes and icons selected by default. De-select any themes or icons you don’t want to back up and click “Backup.”

也可以备份“ / usr / share / themes”目录中的主题和“ / usr / share / icons”目录中的图标。 为此,请单击“主题和图标”右侧的“备份”按钮。 将显示“备份主题”对话框,默认情况下将选中所有主题和图标。 取消选择您不想备份的任何主题或图标,然后单击“备份”。

22a_backing_up_themes_and_icons

The themes are zipped and copied to a “themes” directory in the backup directory and the icons are zipped and copied to an “icons” directory in the backup directory. A dialog box displays telling you that the backups were created successfully. Click “OK” to close the dialog box.

将主题压缩并复制到备份目录中的“主题”目录,将图标压缩并复制到备份目录中的“ icons”目录。 出现一个对话框,告诉您备份已成功创建。 单击“确定”关闭对话框。

22b_themes_and_icons_backed_up

Once you’ve completed the desired backups, close Aptik by clicking the “X” button in the upper-left corner of the main window.

完成所需的备份后,通过单击主窗口左上角的“ X”按钮关闭Aptik。

23_closing_aptik

Your backup files are available in the backup directory you chose.

您的备份文件位于您选择的备份目录中。

24_backup_files_in_directory

When you re-install your Ubuntu system or install a new version of Ubuntu, install Aptik on the newly installed system and make the backup files you generated available to the system. Run Aptik and use the “Restore” button for each item to restore your PPAs, applications, packages, settings, themes, and icons.

当您重新安装Ubuntu系统或安装新版本的Ubuntu时,请在新安装的系统上安装Aptik,并使生成的备份文件对系统可用。 运行Aptik,然后对每个项目使用“还原”按钮来还原您的PPA,应用程序,程序包,设置,主题和图标。

翻译自: https://www.howtogeek.com/206454/how-to-backup-and-restore-your-apps-and-ppas-in-ubuntu-using-aptik/

ubuntu系统备份和还原

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280418.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

AppDomainManager后门的实现思路

本文讲的是AppDomainManager后门的实现思路,0x00 前言从Casey SmithsubTee学到的一个技巧:针对.Net程序,通过修改AppDomainManager能够劫持.Net程序的启动过程。 如果劫持了系统常见.Net程序如powershell.exe的启动过程,向其添加…

所有内耗,都有解药。

你是否常常会有这种感觉:刚开始接手一件事情,脑海中已经幻想出无数个会发生的问题,心里也已笃定自己做不好;即使别人不经意的一句话,也会浮想一番,最终陷入自我怀疑;随便看到点什么,…

ABAP 通过sumbit调用另外一个程序使用job形式执行-简单例子

涉及到两个程序: ZTEST_ZUMA02 (主程序)ZTEST_ZUMA(被调用的程序,需要以后台job执行)"ztest_zuma 的代码DATA col TYPE i VALUE 0.DO 8 TIMES.MESSAGE JOB HERE TYPE S.ENDDO.程序ZTEST_ZUMA是在程序ZTEST_ZUMA02中以job的形式调用的,先…

那些影响深远的弯路

静儿最近反思很多事情,不仅是当时做错了。错误定式形成的思维习惯对自己的影响比事情本身要大的多。经常看到周围的同事,非常的羡慕。他们都很聪明、有自己的方法。就算有些同事工作经验相对少一些,但是就像在废墟上创建一个辉煌的城市要比在…

如何使用APTonCD备份和还原已安装的Ubuntu软件包

APTonCD is an easy way to back up your installed packages to a disc or ISO image. You can quickly restore the packages on another Ubuntu system without downloading anything. APTonCD是将安装的软件包备份到光盘或ISO映像的简便方法。 您可以在不下载任何东西的情况…

使用 Visual Studio 2022 调试Dapr 应用程序

使用Dapr 编写的是一个多进程的程序, 两个进程之间依赖于启动顺序来组成父子进程,使用Visual Studio 调试起来可能会比较困难,因为 Visual Studio 默认只会把你当前设置的启动项目的启动调试。好在有Visual Studio 扩展(Microsoft Child Proc…

卸载 cube ui_如何还原Windows 8附带的已卸载现代UI应用程序

卸载 cube uiWindows 8 ships with built-in apps available on the Modern UI screen (formerly the Metro or Start screen), such as Mail, Calendar, Photos, Music, Maps, and Weather. Installing additional Modern UI apps is easy using the Windows Store, and unins…

Java Decompiler(Java反编译工具)

Java Decompiler官网地址:http://jd.benow.ca/ 官网介绍: The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions. JD-Core is a library that reconstructs Java sou…

MassTransit | 基于MassTransit Courier 实现 Saga 编排式分布式事务

Saga 模式Saga 最初出现在1987年Hector Garcaa-Molrna & Kenneth Salem发表的一篇名为《Sagas》的论文里。其核心思想是将长事务拆分为多个短事务,借助Saga事务协调器的协调,来保证要么所有操作都成功完成,要么运行相应的补偿事务以撤消先…

ccleaner无法更新_CCleaner正在静默更新关闭自动更新的用户

ccleaner无法更新CCleaner is forcing updates on users who specifically opt out of automatic updates. Users will only find out about these unwanted updates when they check the version number. CCleaner强制对专门选择退出自动更新的用户进行更新。 用户只有在检查版…

chrome浏览器崩溃_不只是您:Chrome浏览器在Windows 10的2018年4月更新中崩溃

chrome浏览器崩溃If your computer is hanging or freezing after installing the Windows 10 April 2018 Update you’re not alone, and Microsoft is aware of the problem. 如果在安装Windows 10 April 2018 Update之后计算机挂起或死机,您并不孤单,…

致敬青春岁月

昨天发生的一件神奇的事情。我们公司工会组织了一次小型的户外团建,有机会认识一些其他部门同事,没想到有一个同事小心地认出了我,然后还谈起了关于.NET技术和社区的一些发展的历史和故事。他在微软工作的时间比我久,但时空交错&a…

docker:自定义ubuntu/制作镜像引用/ubuntu换源更新

一、需求 1. 制作一个图像辨识的api,用到相同设置的ubuntu镜像,但是每次制作都要更新ubuntu和下载tesseract浪费半个到一个小时下载,所以制作一个自定义ubuntu几次镜像大大提高开发效率。 2. 制作ubuntu过程时,可以调试tesserac…

facebook人脸照片_为什么您的Facebook照片看起来如此糟糕(以及您可以如何做)...

facebook人脸照片Facebook is a popular platform for sharing photos, even though it’s not a very good one. They prioritize fast loading images over high quality ones. You can’t stop it from happening, but you can minimize the quality loss. Facebook是一个受…

用C#自己动手写个操作系统,爽!

自从C#的AOT编译机制发布以来,有趣的项目越来越多,今天给大家推荐一个开源项目,用C#开发的64位操作系统。项目简介这是一个使用.NET Native AOT技术编译的C# 64位操作系统,系统的基础功能基本都已经支持:网卡、多处理、…

Linux 用户名、主机添加背景色

文章参考:PS1应用之——修改linux终端命令行各字体颜色 Linux 用户名、主机添加背景色,用于生产环境,这样可以减少人为的误操作。 1 [rootzhang ~]# tail /etc/bashrc 2 ……………… 3 export PS1"\[\e[37;40m\][\[\e[37;41m\]\u\[\e[3…

python 调用文件上传图片简单例子

使用方法: python.exe .\test.py "fileD:\img\mark_1080.png" "matchWordListRUN" "urlhttp://192.168.0.37:8081/templateMatch" test.py import requests import sysif __name__ "__main__":print(参数个数为:, len(s…

如何从手机或PC将游戏下载到PlayStation 4

PlayStation 4 games can be huge, and take hours to download. Thankfully, you can start downloading games even when you’re away from home. All you need is Sony’s official smartphone app, or a web browser on any PC. PlayStation 4游戏可能非常庞大&#xff0c…

kaggle入门项目:Titanic存亡预测(三)数据可视化与统计分析

---恢复内容开始--- 原kaggle比赛地址:https://www.kaggle.com/c/titanic 原kernel地址:A Data Science Framework: To Achieve 99% Accuracy Step 4: Perform Exploratory Analysis with Statistics 使用描述性与图表分析数据,重点在于数据可…

docker遇到问题归纳

/bin/sh^M: bad interpreter #在win下编辑的时候,换行结尾是\n\r , 而在linux下 是\n,所以才会有 多出来的\r #可以用以下方式解决先在控制台cd到报错的目录#编辑报错的那个文件 vi xxx.sh#利用如下命令查看文件格式 :set ff 或 :set filef…