Created
April 15, 2015 13:40
-
-
Save erikroyall/d85a486651ed0c53f5c3 to your computer and use it in GitHub Desktop.
Ubuntu Back Up Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg --get-selections > ~/Package.list | |
sudo cp -R /etc/apt/sources.list* ~/ | |
sudo apt-key exportall > ~/Repo.keys | |
rsync --progress /home/`whoami` /path/to/user/profile/backup/here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync --progress /path/to/user/profile/backup/here /home/`whoami` | |
sudo apt-key add ~/Repo.keys | |
sudo cp -R ~/sources.list* /etc/apt/ | |
sudo apt-get update | |
sudo apt-get install dselect | |
sudo dpkg --set-selections < ~/Package.list | |
sudo dselect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment