Created
February 21, 2018 07:33
-
-
Save 0xf10e/e33fcd808aa496b5263adb2cfe03582c to your computer and use it in GitHub Desktop.
Update command from my shell history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pkg upgrade && sudo portsnap fetch update && \ | |
( pkg version | grep -v =; pkg audit ); \ | |
NUM_SNAPS=`zfs list -rt snapshot | wc -l`; \ | |
sudo zfSnap -d -p cron_; sudo -K; \ | |
NUM_SNAPS_NEW=`zfs list -rt snapshot | wc -l`; \ | |
printf "\n%8d ZFS snapshots across all pools \n%8d Snapshots deleted in last purge\n" \ | |
$NUM_SNAPS_NEW $(( $NUM_SNAPS - $NUM_SNAPS_NEW )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment