diff options
| -rw-r--r-- | .bkignore | 11 | ||||
| -rwxr-xr-x | bin/bk | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/.bkignore b/.bkignore new file mode 100644 index 0000000..357d7e8 --- /dev/null +++ b/.bkignore @@ -0,0 +1,11 @@ +Library/Containers/com.apple.Batteries.BatteriesAvocadoWidgetExtension +Library/Containers/com.apple.weather.widget +Library/Group Containers/RP2S87B72W.eu.exelban.Stats.widgets +Library/Group Containers/group.com.apple.secure-control-center-preferences +Library/HomeKit +Library/IdentityServices +Library/Logs +Library/Weather +Caches +*.log +.Trash @@ -0,0 +1,7 @@ +#!/bin/sh + +dest=${BK:-/Volumes/sandisk4}/backup/$(hostname -s) +mkdir -p $dest + +rsync --delete --delete-excluded --exclude-from=$HOME/.bkignore \ + --backup --backup-dir=$dest/$(date +%A) -av $HOME $dest/current |
