Debian OS – Simple Backup


BACKUP STEPS


1. APT Packages list

dpkg --get-selections > package_list

This creates a text file (package_list) with all package installed in your system. You can edit the file if you want to delete some packages.
TIP: for Offline installations you can use APTonCD to back up the actual packages. (they can be outdated and won’t auto-update!)

2. Settings
REPO Sources
/etc/apt/sources.list
PPA Sources
/etc/apt/sources.list.d
Partition Mount Settings (Advanced)
/etc/fstab
Driver Exclusion Settings (Advanced)
/etc/modprobe.d

3. Personal Data
Backup your home folder
/home/[username]

Notice: All application settings are hidden folders/files in your user’s home folder, maybe you want to select what settings you want to restore.


RESTORE STEPS


1. Install your Debian OS

2. Restore repositories (/etc/apt/sources.list file and /etc/apt/sources.list.d/ folder).

3. Import your package list

apt-get update && sudo apt-get upgrade
dpkg –clear-selections
dpkg –set-selections < package_list

4. Install your selected packages

sudo apt-get update && sudo apt-get dselect-upgrade
sudo apt-get autoremove

Special thanks to original poster is Ilazgo as a comment: https://askubuntu.com/a/243408/340580

 

Advertisements

What are your thoughts on this?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s