Jump to content

Can I back up my apps, so I can restore them as is, if I reinstall Llinux?

GIGA AORUSBYTE B550I PRO AX (AM4 AMD/B550/Mini-Itx/Dual M.2/SATA 6Gb/s/USB 3.2 Gen 1/WiFi 6/2.5 GbE LAN/PCIe4.0/Realtek ALC1220-Vb/DisplayPort 1.4/2xHDMI 2.0B/RGB Fusion 2.0/DDR4/Gaming Motherboard) ,AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked 4.7 GHz, TEAMGROUP T-Force Vulcan Z DDR4 32GB (2 x 16GB) 3200MHz (PC4 25600) Ram, EVGA GeForce RTX 3060 Ti XC Gaming, 08G-P5-3663-KL, 8GB GDDR6, Metal Backplate, LHR 

Link to comment
https://linustechtips.com/topic/1498116-app-backup/
Share on other sites

Link to post
Share on other sites

You generally don't need to backup the apps, just their settings.

 

I backup my home directory using rsync (excluding some cache directories etc.). Make sure to include hidden directories like .local, .mozilla, .thunderbird, because that's where their user specific settings live.

 

After reinstalling Linux and installing these programs again, restoring the home directory is enough to get back pretty much all of my in-app settings (e.g. bookmarks and settings in Firefox)

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
https://linustechtips.com/topic/1498116-app-backup/#findComment-15873471
Share on other sites

Link to post
Share on other sites

19 hours ago, Edward78 said:

Can I back up my apps, so I can restore them as is, if I reinstall Llinux?

Yes, application settings are stored in your home directory in the ".config" and ".local" folders, some are weird and make up their own path though.

 

As for the packages themselves? You can't really do it in a gui, but using the terminal you can ask your package manager to list all the installed applications like this

 

Debian/Ubuntu based

apt list --installed

ArchLinux based

pacman -Qe

Gentoo

cd /var/db/pkg/ && ls -d */*

Fedora/openSUSE/RHEL based distros

rpm -qa

then you can cat the the output to a basica text files by appending this to the above listed commands

>> packages.txt

 

As for using that list to reinstall? You can simply tell you package manager to use the packages.txt file

apt install packages.txt
dnf in packages.txt
emerge -a "packages.txt"

 

Link to comment
https://linustechtips.com/topic/1498116-app-backup/#findComment-15874433
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

You can backup your configuration files with rsync.

 

And you can use NixOS so you can easily reinstall all your old apps. (reproducible deployment)

OS: OpenBSD -current WM: Polybar -- bspwm -- dmenu -- picom Components: Intel 12700KF -- G.SKILL RIPJAWS @4000 CL18 -- ASUS Dual Radeon RX 9060 XT 16GB -- ASUS ROG STRIX B760-G GAMING WIFI D4 -- JONSBO Z20 black -- ARCTIC F14 -- bequiet! SYSTEM POWER 10 550W -- DeepCool AG500BK -- Kingston Renegade G5 1TB and Samsung 9100 PRO 1TB Mouse: zalman ZM-GM7 Display panel: UltraGear 34G630A-B Headphones: Kawai SH-9 Webcam: Microsoft LifeCam HD-3000 Keyboard: HP desktop 320K Microphone: Trust GXT 259 RUDOX Camera: Fujifilm X-M5

Link to comment
https://linustechtips.com/topic/1498116-app-backup/#findComment-15894828
Share on other sites

Link to post
Share on other sites

1 hour ago, The Hope said:

You can backup your configuration files with rsync.

 

And you can use NixOS so you can easily reinstall all your old apps. (reproducible deployment)

Are you willing to walk a user through installing configuring and maintaining a NixOS system? If not, please don't make it sound so easy. Otherwise I'd be running around talking about the benefits of Gentoo and how I use it on all my systems because it is objectively (not practically) better.

Link to comment
https://linustechtips.com/topic/1498116-app-backup/#findComment-15894945
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×