Skip to content

u/ExpticCandyC

In this archive from Aug 2021 to Aug 2021

0
posts
9
comments
0
media
32
score

Top comments

Can you elaborate more please? There are a few scenarios you can go:

  1. You want to backup your config files, settings, and such, so that you dont have to do the all again the next time.
  2. Option 1 + your personal files.
  3. Backing up everything, so you have an offline installer you can use if your installation gets corrupted.

For option #3 your best bet is "archiso" residing in the community repository, you can read the full guide on the arch wiki. btw, i believe doing this is pointless.

Option #2? all your files are in your /home . or at least are supposed to be. go to home, and imagine your username is ABCD. simply just make a tarball of your home directory:
tar zcvf backup.tar.gz /home/ABCD/

this will give you a tarball you can extract whenever you want, which will apply all your settings, all your configs, all your themes and ricing and wallpaper and even browser history, saved passwords, bookmarks, cookies, browser extensions, whatever you can imagine. this method contains all your personal files inside home directory as well. In case of a breakage you can reinstall arch, after making your user and setting the password, extract that tarball in /home and set the ownership with "chown" (remember to do it recusively so you are the owner of every single file in there)

If you want to have a complete list of all the packages you have installed with pacman, do this:

pacman -Qs > packageList.txt

that will make a complete list of every single package you have installed, and write that in a file called "packageList.txt"

For option #1, it's literally the same as option #2. the only difference is that you omit your personal files, and just compress the folders containing your config files.

11 points

just remember, you dont need to do anything fancy there. just simply boot up your linux, and run that command.
To restore, just do a complete installation, get all your softwares installed. then copy your tar ball where ever you like, open a terminal and do "su" remove the current home folder, and extract the tarball. after a reboot you have your system exactly like it was when you took that tarball.

Hint: use this to achieve max compression:
env GZIP=-9 tar cvzf backup.tar.gz /home/ABCD

4 points

It all depends on many factors. Your storage, your media containing your home directory, the applications you use etc. Etc.
I have a Void installation on an 8GB usb storage, I use it whenever im not on my own pc (a slow linux is better than windows) on that one, .cache is defined as tmpfs in my fstab. Meaning that it is mounted on RAM. (The same as pointing it to tmp)
On my gentoo installation, I point it to RAM when I want to compile something heavy, then reduce my compilation tasks by one (I dedicate two GB to .cache) this way emerge can access my source files on the fly and makes compilation at least 30% faster compared to having one more compiler task at a time. (The same with compiling AUR packages on ARCH)
Cache is usually meant to be used for temporary files, download parts, somewhere to store data that will be discarded/not needed soon. SO, basically losing .cache folder is totally fine and all your apps would work perfectly fine. But there are softwares (usually ported from windows) that treat .cache folder like Users\AppData folder of windows and store their data there, like a good amount of ported games store their save files there. That is when mounting your .cache on RAM would be a disaster.

A rule of thumb: rename your .cache to .cacheOLD and restart, try all your apps and see if any of them misbehave. if all of them are working fine, be my guest, make a symbolic link and create a new .cache folder that resides in tmp (or define it as tmpfs in fstab, if you have enough ram)
If you noticed any misbehaviour, just remove the new .cache folder, and rename .cacheOLD back to .cache , everything will be back to the way it was before

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.