X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/0d755f8783ff2a64e11412c5426e7a036117c624..fec0c9035c9c8b1b9f1d570146c917a0637700f0:/invoke/upgrade-linux/tasks.py diff --git a/invoke/upgrade-linux/tasks.py b/invoke/upgrade-linux/tasks.py index c079ba8..9dd3491 100644 --- a/invoke/upgrade-linux/tasks.py +++ b/invoke/upgrade-linux/tasks.py @@ -30,6 +30,11 @@ def backup_etc(c): login = os.getlogin() c.run(f'sudo chown {login}:{login} {HOME}/backup/etc.backup.{TODAY}.tar.gz') +@task +def checklist(c): + print("- [ ] Review the output of `invoke review-backups`") + print("- [ ] Verify that {HOME}/backup is backed up on a separate device.") + print("- [ ] Verify we have at least 5G of free space. (`invoke show-disk-space`)") @task def review_backups(c): @@ -40,6 +45,7 @@ def review_backups(c): print('Ensure sources are backed up:') c.run(f'tar tf {HOME}/backup/etc.backup.*.tar.gz | grep etc/apt/sources') c.run(f'ls -al --block-size=M {HOME}/backup') + checklist(c) @task def backup(c):