AWS S3 backup script

Published on Author admin

Start with updating AWS CLI tool: pip3 install awscli --upgrade --user Script for backing up data into your AWS S3 bucket: #!/bin/bash pathtobackup='/home/USERNAME/data/' pathtoarchivefile='/home/USERNAME' filenameprefix='backup-nextcloud' secret='secretpassword' awsbucket='awsbucket-name' date=`date --iso-8601` archivefilename=$filenameprefix-$date.7z echo echo "Performing backup of $pathtobackup to s3://$awsbucket/$archivefilename" echo echo `date -Is` echo "Compressing $pathtobackup to $pathtoarchivefile/$archivefilename" echo 7za a $pathtoarchivefile/$archivefilename $pathtobackup -p$secret echo echo… Continue reading AWS S3 backup script

[Raspberry Pi] script for auto reconnecting WiFi connection

Published on Author admin

Create script file: touch /home/volumio/wifi-reconnect.sh with following content: #!/bin/bash   SSID=$(/sbin/iwgetid --raw) if [ -z "$SSID" ] then     echo "`date -Is` WiFi interface is down, trying to reconnect" >> /home/volumio/wifi-log.txt     systemctl restart wireless fi echo "WiFi check finished" Make new file executable: chmod +x /home/volumio/wifi-reconnect.sh Install cron: sudo apt-get install cron… Continue reading [Raspberry Pi] script for auto reconnecting WiFi connection

[Raspberry Pi] Music playing using Volumio with Sound Blaster X-Fi

Published on Author admin

Music playing using Volumio on Raspberry Pi with Sound Blaster X-Fi Architecture schema: Installation steps: Download Volumio image from https://volumio.org/get-started/ Unzip downloaded image unzip md5sum volumio-2.348-2017-12-22-pi.img.zip Check MD5 checksum of uncompressed image: md5sum volumio-2.348-2017-12-22-pi.img Insert microSD card to your laptop/PC. You can delete all existing partitions using for instance gparted tool. You can install it… Continue reading [Raspberry Pi] Music playing using Volumio with Sound Blaster X-Fi

Configuring FortiSSLVPN on Fedora 27 (using Gnome and NetworkManager)

Published on Author admin

Configuring FortiSSLVPN (FortiGate SSL VPN) on Fedora 27 (using Gnome and NetworkManager) Install required packages: dnf install NetworkManager-ppp NetworkManager-fortisslvpn NetworkManager-fortisslvpn-gnome NetworkManager-openconnect-gnome openfortivpn Enable Fedora testing repository and install upgrades for following packages (1.2.6-3 as version 1.2.6-1 contains some bugs): dnf update NetworkManager-fortisslvpn NetworkManager-fortisslvpn-gnome After that disable Fedora testing repository. Create VPN profile using NetworkManager GUI,… Continue reading Configuring FortiSSLVPN on Fedora 27 (using Gnome and NetworkManager)