needrestart is a neat little tool that automatically reloads running packages when an update so requires.
Essentially, an update or change doesn’t take effect until a reload.
In the case of needrestart, this can be installed/enabled on all devices.
sudo apt install needrestart
sudo nano /etc/needrestart/needrestart.conf
This is really the ‘auto-update’ feature, that I enable on 24/7 servers.
If it’s not always running, I just run updates myself when I think about it.
The default settings work, and they only auto-install security updates.
sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades
sudo systemctl restart unattended-upgrades.service &&
sudo systemctl status unattended-upgrades.service
sudo nano /etc/apt/apt.conf.d/20auto-upgrades
sudo nano /etc/apt/apt.conf.d/50unattended-upgrades
sudo nano /var/log/unattended-upgrades/unattended-upgrades.log
sudo nano /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
rclone is another neat tool, that syncs to existing cloud services without their annoying app!
Meaning you can sync/upload to google drive, onedrive, etc, on your own terms.
I now have Proton Drive, so that’s my cloud of choice.
sudo -v ; curl https://rclone.org/install.sh | sudo bash
rclone selfupdate
rclone config
sudo nano /usr/local/bin/rcbono
#!/bin/sh
SRC=/home/daddio/zBonoBacks
DEST=proton:zBonoProton
rclone --retries 2 \
--fast-list \
--skip-links \
--size-only \
--checkers 6 \
--transfers 6 \
--drive-chunk-size 256M \
--exclude '.*{/**,}' \
-P \
sync ${SRC} ${DEST}
sudo chmod +x /usr/local/bin/rcbono