borgmatic: Rework borgmatic config to be a little less silly
Instead of globally excluding by pattern, exclude directories that contain a .borgignore file This makes the borg config more scalable across different setups
This commit is contained in:
@@ -30,14 +30,10 @@
|
|||||||
patterns = [
|
patterns = [
|
||||||
#TODO: home.homeDirectory might be usable here
|
#TODO: home.homeDirectory might be usable here
|
||||||
#TODO: should be user and machine specific
|
#TODO: should be user and machine specific
|
||||||
"R /home/${username}/Documents"
|
"R /home/${username}"
|
||||||
"R /home/${username}/.ssh"
|
"+ /home/${username}/.ssh"
|
||||||
"- /home/${username}/Documents/SteamLibrary"
|
"- /home/${username}/.*"
|
||||||
"- /home/${username}/Documents/PrismLauncher instances"
|
|
||||||
"- /home/${username}/Documents/.Trash-1000"
|
|
||||||
"- /home/${username}/Documents/VMs/Data"
|
|
||||||
"- **/node_modules"
|
"- **/node_modules"
|
||||||
"- **/.git"
|
|
||||||
"- **/.cache"
|
"- **/.cache"
|
||||||
"- **/*build"
|
"- **/*build"
|
||||||
"- **/target"
|
"- **/target"
|
||||||
@@ -48,6 +44,8 @@
|
|||||||
"- **/dist"
|
"- **/dist"
|
||||||
"- **/.pio"
|
"- **/.pio"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
extraConfig.exclude_if_present = [ ".borgignore" ];
|
||||||
};
|
};
|
||||||
retention.keepWeekly = 2;
|
retention.keepWeekly = 2;
|
||||||
storage.extraConfig.ssh_command = "ssh -i /home/${username}/.ssh/id_ed25519_borg";
|
storage.extraConfig.ssh_command = "ssh -i /home/${username}/.ssh/id_ed25519_borg";
|
||||||
|
|||||||
Reference in New Issue
Block a user