diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-03-16 11:57:25 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-03-16 11:57:25 +0100 |
| commit | f038b48de460a42ad46a5b15985d1ebf344ee661 (patch) | |
| tree | 53bd75ce32bb6275c5ea2f9bcfb225dd505c80f4 | |
| parent | 5422f4494791a6bec588481397c24279984e2455 (diff) | |
update
| -rw-r--r-- | .bkignore | 9 | ||||
| -rwxr-xr-x | bin/bk | 10 | ||||
| -rwxr-xr-x | bin/vm | 2 |
3 files changed, 19 insertions, 2 deletions
@@ -1,5 +1,6 @@ Library/CloudStorage Library/Containers/com.apple.Batteries.BatteriesAvocadoWidgetExtension +Library/Containers/com.apple.Safari/Data Library/Containers/com.apple.weather.widget Library/Containers/com.docker.docker/Data/vms Library/Google/GoogleSoftwareUpdate/Stats @@ -8,14 +9,22 @@ Library/Group Containers/group.com.apple.secure-control-center-preferences Library/HomeKit Library/IdentityServices Library/Logs +Library/Biome +Library/DuetExpertCenter +Library/Suggestions +Library/Trial Library/Weather +caches Caches Cache StorageCache CacheStorage Code Cache ServiceWorkers +CoreSpotlight +Spotlight SiriAnalytics.db +com.apple.mediaanalysisd *.log .Trash .vm @@ -1,7 +1,15 @@ #!/bin/sh +# Daily backup script. + dest=${BK:-/Volumes/sandisk4}/backup/$(hostname -s) -# mkdir -p $dest +day=$(date +%A) + +# Clear previous week incremental backup +mkdir $HOME/emptydir +rsync --delete -a $HOME/emptydir/ $dest/$day/ +rmdir $HOME/emptydir +# Now backup rsync --delete --delete-excluded --exclude-from=$HOME/.bkignore \ --backup --backup-dir=${dest#*:}/$(date +%A) -av $HOME $dest/current @@ -229,7 +229,7 @@ vftool_tty() { grep -om 1 '\/dev\/tty.*' 'vftool.log'; } # Main starts here. dir="$HOME/.vm" -Cmdlist='add console del edit info help ls log start stop version' +Cmdlist='add console del edit info init_vftool help ls log start stop version' [ "$1" ] && C=$1 && shift 1 || { help; exit 1; } for c in $Cmdlist; do case $c in |
