diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-02-28 20:29:19 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-02-28 20:29:19 -0700 |
commit | 94799a030500779a9f283ea3a5f43dbcaf3f1c44 (patch) | |
tree | f7f1ab4984f710b9d863154b4a4c2cb0fa0c8378 | |
parent | 12944a4a4f718a6b2e25acd3d3e2d26eda9dcf8f (diff) | |
download | dotfiles-94799a030500779a9f283ea3a5f43dbcaf3f1c44.tar.gz |
expand weekly-backups
-rwxr-xr-x | bin/weekly-backups | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bin/weekly-backups b/bin/weekly-backups index 573e62e2..dc1adcd1 100755 --- a/bin/weekly-backups +++ b/bin/weekly-backups @@ -1,5 +1,7 @@ #!/bin/sh +# the idea is that if this script dies it can be safely be re-run from the beginning + . "$HOME/.shenv" . "$HOME/lib/try.sh" . "$HOME/lib/tputfs.sh" @@ -13,10 +15,21 @@ cd "$HOME" zero ls "$HOME/tmp" zero ls /tmp/debuild -zero ls ssh athena ls tmp +zero ssh athena ls tmp mount "$HOME/lib/fm" || true zero ls "$HOME/lib/fm/tmp" +# TODO: write a file to ~/.cache and if that file was edited today, skip these +ssh athena df -h +ssh athena uptime +status Press enter to confirm that athena has enough free disc space +status and it has not been unexpectedly rebooted recently +status Or hit C-c and deal with the situation +read _ + +try ssh -t athena sudo apt-get update +try ssh -t athena sudo apt-get upgrade + status running src-unregistered check status unregistered repos need to have 'mr register' run in them status "(and tracking branches set up, and new alioth repos added to coldbkup script)" |