A simple set of scripts to backup and restore your Arch Linux setup after a fresh install. This ensures all your installed packages and home directory files (including configurations, wallpapers, and personal data) are preserved and restored effortlessly.
- Saves a list of all installed packages (
pacman -Qq). - Creates a compressed archive of your entire home folder.
- Restores all installed packages after a fresh Arch install.
- Unpacks your entire home directory back to its original state.
Run the following script before reinstalling Arch to save everything in your home folder:
cd ~
sudo pacman -S git pv
git clone https://github.com/ShadeXploit/full-system-backup.git
cd full-system-backup/
chmod +x backup_script.sh
./backup_script.shAfter reinstalling Arch, move your backup folder "/arch-backup" into your (~) directory and run this script to restore everything:
cd ~
sudo pacman -S git pv
git clone https://github.com/ShadeXploit/full-system-backup.git
cd full-system-backup/
chmod +x restore_script.sh
./restore_script.shThe backup script excludes itself (arch_backup) to avoid redundancy. ensure you copy the arch_backup folder to external storage before reinstalling Arch! After restoring, restart your session for changes to take effect.
This project is licensed under the MIT License. Feel free to modify and share!
Feel free to open a pull request or report issues!