Hướng dẫn dự phòng và khôi phục gói dữ liệu Ubuntu băng APTonCD
APTonCD là một cách dễ dàng để lưu dự phòng các gói cài đặt (package) vào đĩa cứng hay file ISO Bạn có thể khôi phục gói nhanh chóng để cài đặt trên hệ thống Ubuntu khác mà không cần tải bất cứ thứ gì
Sau khi sử dụng AP7onCĐ, người dùng có thể cài đặt những gói được lưu dự
phòng chỉ với một thao tác, bổ sung thêm gói, hay khôi phục chúng trên bộ lưu
dém APT (APT cache)
APTonCD
Welcome to APTonCD
Create an installation disc with all your cached packages installed via APT and also additional packages you've downloaded
Cai dat
Trang 2Ubuntu Software Center © ee Q APToncD All Software Installed Sie) RY | All Software T APTonCD 24 me) Create a Installation Disc Bạn cũng có thể sử dụng câu lệnh sau:
sudo apt-get install aptoncd
Sau khi cài, khởi chạy nó từ Dash a ` Ly APTonCD Dự phòng gói
Trang 3APTonCD
Welcome to APTonCD
Create an installation disc with all your cached packages
installed via APT and also additional packages you've
downloaded
Restore the packages from either a CD/DVD or iso image
previously created by APTonCD back to your apt cache
This will not install any software on your system, it just copy it back to the APT cache
Ready
Trang 4APTonCD - Create Select the packages you want in the installation disc Package v Size aptoncd (0.1.98+bzr117-1.1build2) 211.4 KB Installation disc creator for packages downloaded via APT cabextract (1.4-1) : : h 40.7 K Microsoft Cabinet file unpacker = w couchdb-bin (1.0.1-0ubuntu17) 619.6 KB RESTful document oriented database, programs , desktopcouch-ubuntuone (1.0.8-0ubuntu1) 73KB Ubuntu One connection extension for Desktop CouchDB , desktopcouch (1.0.8-0ubuntu1) , 12.4K ø Desktop CouchDB instance CĐ % erlang-base (1:14.b.2-dfsg-3ubuntu2) 71MB Erlang/OTP virtual machine and base applications : erlang-crypto (1:14.b.2-dfsg-3ubuntu2) 40.5 KB Erlang/OTP cryptographic modules erlang-inets (1:14.b.2-dfsg-3ubuntu2) 758.0K g Erlang/OTP Internet clients and servers aac erlang-mnesia (1:14.b.2-dfsq-3ubuntu2 @ _ nesia (1:1 sora A eae u2) aatahace 665.8 KB SPAdd + @Burn ‘Total 78/146.8 MB Selected: 78/146.8 MB Custom: 0/0 Bytes
Khi đã chọn gói, nhân nút Burn Từ cửa số hiện lên, chọn file ảnh CD hoặc DVD,
Trang 5Package Microsoft Cabinet file % couchdb-bin (1.0.1- RESTful document ori( 4 desktopcouch-ub Ubuntu One connectic % desktopcouch (1.0 Desktop CouchDB inst % erlang-base (1:14.L Erlang/OTP virtual mai 4 erlang-crypto (1:1: Erlang/OTP cryptogras % erlang-inets (1:14 | Erlang/OTP internet cl œ ©rlang-mnesia (1:1 CelnnnlIATO dickrcihukad @ 1cD ) 1DVD Destination of the image(s) = Desktop File name for the image aptoncd-20120329 Other options @ Create a meta-package Cancel | | 4> —— Apply
Totat 78/146.8 MB Selected: 78/146.8 MB Custom: 0/0 Bytes
Select the packages you want in the installation disc
Trang 6Select the packages you want in the installation disc Creating APTonCD = Creating APTonCD `
The installation disc is being created
You can cancel this operation at any time @ Copying packages >» Scanning packages (CD1) Making the iso image Cleaning session —' Scanning and cataloguing packages | Cancel |
Khi file ảnh đã được tạo, khởi chạy một ứng dụng phi đĩa như Brasero để ghi file
Trang 7
Select the packages you want in the installation disc
Do you want to burn Ít now?
The APTonCD iso image was successfully created, and it can be found in:
| mã /home/howtogeek/Desktop
IF you would like to burn the disc now, choose the
desired application to do it:
© brasero Š
No Yes
Cài đặt gói từ đĩa cứng
Trang 8packages Devices + packages — APToncD he ° m1 aptoncd_0.1.98 aptoncd- ja Ubuntu One +bzr117-1.1build2_ metapackage_ all.deb 20120329.deb Computer Desktop 5 cabextract_1.4-1_ couchdb-bin_1.0.1- i) Documents i386.deb Oubuntu17_i386 iJ Downloads deb (đi Music = =a (j@ Pictures 2 wae i Videos _"aptoncd-metapackage_20120329.deb" sel Nếu chỉ có một file ảnh ISO, bạn có thể bung file ảnh như một đĩa cứng và cài các gói từ nó
Add CD or DVD as APT source
When adding a CD or DVD as Software Source you are telling APT to looks into this CD to find for available packages, and eventually gets From it when a installation is requested This is the best choice to use the APTonCD media
To use this option you will require administrative privileges it will prompt for a CD to be inserted in the default drive
See APTonCD's manual to get a more detailed information
about what it means
Trang 9Nút Load trên màn hình khôi phục sẽ không hoạt động cho đến khi người dùng
cài gói hai lên hệ thống Sử dụng câu lệnh sau:
sudo apt-get install hal
Terminal
howtogeek@ubuntu:~$ sudo apt-get tnstaLL hatLl
Trang 10
Restore APTonCD
_ Select a device or a ISO image
“This action will copy back the packages on an APTonCD medium previously created back to your APT cache
Attention: This will not install any software on your computer, you need to do it manually later using apt-get, Synaptic or any other package manager
This is not the best way to use the installation disc, if you want to do it right burn it ona CD/DVD and then use the option
"Add CD/DVD " from the APTonCD menu or just insert the medium in the drive and click on the option "Start Package Manager” Select where you want to restore files from: Device: @ ©) ISO Image File: | (None) i | | cancel || OK _
Nhân Restore để khôi phục gói đã tải vào bộ lưu đệm APT APT sé su dung ching
Trang 11APTonCD - Restore Select the packages you want from the installation disc Package v Size ge aptoncd (0.1.98+bzr117-1.1build2) 211.4 KB —— Installation disc creator for packages downloaded via APT cabextract (1.4-1) 40.7 Microsoft Cabinet file unpacker hộ couchdb-bin (1.0.1-0ubuntu17) ø RESTful document oriented database, programs vn % desktopcouch-ubuntuone (1.0.8-0ubuntu1) 73KB Ubuntu One connection extension for Desktop CouchDB : desktopcouch (1.0.8-0ubuntu1) 124KB Desktop CouchDB instance : wy erlang-base (1:14.b.2-dfsg-3ubuntu2) 71MB
Erlang/OTP virtual machine and base applications q
& erlang-crypto (1:14.b.2-dfsg-3ubuntu2) 40.5 KB
Erlang/OTP cryptographic modules , erlang-inets (1:14.b.2-dfsg-3ubuntu2) 758.0 KB Erlang/OTP Internet clients and servers : œ eflang-mnesia (1:14.b.2-dfso-3ubuntu2) 665.8 KB lmaLoad | | > Resteye ‘Total: 78/146.8 MB Selected: 78/146.8 MB Custom: 0/0 Bytes
APTonCD dac biệt hữu dụng cho những hệ thống không có kết nối Internet,