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
Trang 1Hướ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
APTonCD có sẵn trong kho quản lý phan mém mac dinh cua Ubuntu Hay tìm
kiếm “APTonCD” trong Ubuntu Software Center No ciing cé san trong cdc kho
dữ liệu phân mêm của Debian.
Trang 2Ubuntu Software Center
All Software Installed Sie) RY
| All Software
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
APTonCD
Dự phòng gói
Nút “Creare” cho phép tạo một đĩa cứng chứa gói tải về hay gói lưu đệm Bản sao những gói từ bộ lưu đệm AP7(đặt tại “»ar/cache/ap1⁄archives/direcfory) được dua vào đĩa cứng Tuy nhiên, nếu người dùng có sử dụng một số tiện ích dọn đẹp như Compurer Janifor thì những gói lưu đệm có thể không còn trên hệ thống.
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
APTonCD mang dén cho người dùng một danh sách các gói lưu đệm và tự động
đánh dấu chọn tất cả Người dùng có thể bỏ dấu chọn gói nào mà không muốn ghi
vào đĩa cứng Nếu muốn bố sung thêm những gói DEB, nhân nút Add đề thêm vào
danh sách Cũng có thể kéo thả gói 2E từ một trình quản lý file vào cửa số.
Trang 4APTonCD - Create
Select the packages you want in the installation disc
aptoncd (0.1.98+bzr117-1.1build2) 211.4 KB
Installation disc creator for packages downloaded via APT
Ubuntu One connection extension for Desktop CouchDB ,
desktopcouch (1.0.8-0ubuntu1) , 12.4K
Erlang/OTP virtual machine and base applications :
Erlang/OTP cryptographic modules
g Erlang/OTP Internet clients and servers aac
erlang-mnesia (1:14.b.2-dfsq-3ubuntu2
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,
quy định tên và vị trí cho file ảnh ISO và tạo một gói siêu lớn (éwefa-package) tùy
ý Một gói siêu lớn là một gói phụ thuộc vào tất cả các gói khác trên đĩa cứng Nó
cho phép bạn dễ dàng cải đặt toàn bộ những gói trên đĩa cứng bằng cách bảo APT
chỉ cân cài một gói (gói siêu lớn).
Trang 5
Package
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 | |
Apply
Totat 78/146.8 MB Selected: 78/146.8 MB Custom: 0/0 Bytes
Select the packages you want in the installation disc
@ aptoncd (0.1.98+bz Installation disc creato Installation Disc Properties
œ cabextract (14-1) Type of medium
_„Add v
Size 211.4 KB 40.7 KB 619.6 KB 7.3KB 12.4 KB 71MB 40.5 KB 758.0 KB 665.8 KB
©Burn
Nhan Apply APTonCD sé tao mot file anh ISO o dung vi tri ma ban chi dinh
Trang 6
Select 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
ảnh vào đĩa cứng Ta cũng có thể ghi file ảnh ISO sau Nếu khong cé 6 dia, hay
lưu file ảnh ISO và vận chuyển nó giữa các may tinh théng qua 6 USB khi cần.
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:
Cài đặt gói từ đĩa cứng
Cho đĩa cứng vào ô đĩa, mở nó ra trên cửa sô quản lý file sau đó kích đúp vào gói
có tên “apfoncd-mefapackage” đê cài đặt Quá trình sẽ cài tât cả các gói trên đĩa
cứng.
Trang 8packages
— APToncD
all.deb 20120329.deb Computer
Desktop
i) Documents i386.deb Oubuntu17_i386
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
Don't display this message again
| Cancel || OK |
Khôi phục gói trên bộ lưu đệm
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
Khởi động lại APTonCD sau khi chạy câu lệnh này và bạn sẽ có thê khôi phục gói bằng cách nhấn Restore Người dùng có thể khôi phục gói cho bất kỳ hệ thống nào, miễn là các hệ thống có cùng kiến trúc Ví dụ như, không thể cài gói 64 bit lên hệ thống Ubuntu 32 bit
APTonCD - Restore
Select the packages you want from the installation disc
mp Load
Str dung nit Load trên màn hình Restore dé quy dinh mét 6 dia hay file anh ISO.
Trang 10Restore 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
để cài đặt thay vì tải chúng.
Trang 11APTonCD - Restore
Select the packages you want from the installation disc
—— Installation disc creator for packages downloaded via APT
Microsoft Cabinet file unpacker hộ
couchdb-bin (1.0.1-0ubuntu17)
Ubuntu One connection extension for Desktop CouchDB :
Erlang/OTP Internet clients and servers :
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,
nhưng đây cũng là cách nhanh nhất để khôi phục lại những gói ưa thích của bạn
sau khi cài đặt Ubuntu từ đầu mà không phải nhớ tên chúng.