Migrate borg excludes and installation
This commit is contained in:
parent
4c095733d7
commit
2ba1a01f2c
3
home.nix
3
home.nix
|
@ -42,6 +42,7 @@
|
|||
pkgs.tree
|
||||
pkgs.rst2pdf
|
||||
|
||||
pkgs.borgbackup
|
||||
pkgs.keepassxc
|
||||
|
||||
# Dev tools
|
||||
|
@ -116,6 +117,8 @@
|
|||
|
||||
"i3/config".source = ./home/files/i3;
|
||||
"i3blocks/config".source = ./home/files/i3-blocks;
|
||||
|
||||
"borg/exclude".source = ./home/files/borg-exclude;
|
||||
};
|
||||
|
||||
xdg.desktopEntries.networkmanager-dmenu = {
|
||||
|
|
14
home/files/borg-exclude
Normal file
14
home/files/borg-exclude
Normal file
|
@ -0,0 +1,14 @@
|
|||
/home/daniels/.cache
|
||||
/home/daniels/.config
|
||||
/home/daniels/.local
|
||||
/home/daniels/.mozilla/firefox/jco1rw0p.default/storage/default
|
||||
/home/daniels/.nix-profile/
|
||||
/home/daniels/.npm
|
||||
/home/daniels/.vimundo
|
||||
/home/daniels/Documents/Audacity/
|
||||
/home/daniels/Documents/Mail/
|
||||
/home/daniels/Downloads
|
||||
/home/daniels/Music
|
||||
/home/daniels/Projects
|
||||
/home/daniels/Videos
|
||||
/home/daniels/snap
|
|
@ -51,7 +51,7 @@
|
|||
grep = "grep --color=always";
|
||||
|
||||
# Create borg backup
|
||||
createBackup = "mkdir -p ~/backup-etc && sudo cp -r /etc/* ~/backup-etc && sudo cp -r /etc/.* ~/backup-etc && sudo chown daniels:daniels -R ~/backup-etc/ && borg create -v --progress --stats --exclude-from ~/.borg-exclude /media/daniels/Backup::$(date +%F-%R) ~/; sudo rm -rf ~/backup-etc";
|
||||
createBackup = "mkdir -p ~/backup-etc && sudo cp -r /etc/* ~/backup-etc && sudo cp -r /etc/.* ~/backup-etc && sudo chown daniels:daniels -R ~/backup-etc/ && borg create -v --progress --stats --exclude-from ~/.config/borg/exclude /media/daniels/Backup::$(date +%F-%R) ~/; sudo rm -rf ~/backup-etc";
|
||||
};
|
||||
|
||||
history = {
|
||||
|
|
Loading…
Reference in a new issue