-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.sh
executable file
·79 lines (58 loc) · 1.59 KB
/
backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
script_dir="$(pwd)"
# Function to copy files/directories, replacing if they exist
copy_item() {
if [ -e "$1" ]; then
rsync -a --delete "$1" "$2"
echo "Updated: $1"
else
echo "Not found: $1"
fi
}
# Backup Hyprland config
echo
echo "Backup Hyprland config"
copy_item "$HOME/.config/hypr" "$script_dir/.config/"
# Backup wlogout config
echo
echo "Backup wlogout config"
copy_item "$HOME/.config/wlogout" "$script_dir/.config/"
# Backup fuzzel config
echo
echo "Backup fuzzel config"
copy_item "$HOME/.config/fuzzel" "$script_dir/.config/"
# Backup qt config
echo
echo "Backup qt5ct & qt6ct config"
copy_item "$HOME/.config/qt5ct" "$script_dir/.config/"
copy_item "$HOME/.config/qt6ct" "$script_dir/.config/"
# Backup AGS config
echo
echo "Backup AGS config"
copy_item "$HOME/Downloads/github_downloads/HyprPanel/." "$script_dir/.config/ags"
# Backup rofi configs
echo
echo "Backup rofi config"
copy_item "$HOME/.config/rofi" "$script_dir/.config/"
# Backup Kitty config
echo
echo "Backup Kitty config"
copy_item "$HOME/.config/kitty" "$script_dir/.config/"
# Backup zsh configs
echo
echo "Backup zsh configs"
copy_item "$HOME/.zshrc" "$script_dir/"
copy_item "$HOME/.zprofile" "$script_dir/"
copy_item "$HOME/.zshenv" "$script_dir/"
copy_item "$HOME/.zsh" "$script_dir/"
copy_item "$HOME/.config/zshrc.d" "$script_dir/.config/"
# Backup fonts
echo
echo "Backup fonts"
copy_item "$HOME/.fonts" "$script_dir/"
echo
echo "Backup completed in: $script_dir"
# Backup fastfetch conf
echo
echo "Backup fastfetch conf"
copy_item "$HOME/.fastfetch_conf.jsonc" "$script_dir/"