From f05a51169e593a9802b3e467fae9ed76eb86fea5 Mon Sep 17 00:00:00 2001 From: Aney Date: Mon, 19 Oct 2020 14:59:03 +0100 Subject: [PATCH] Added rsync backup scripts and my current DWM bar script --- backup/rsync_backup | 6 ++++++ backup/rsync_usb | 2 ++ config/bar.sh | 15 +++++++++++++++ 3 files changed, 23 insertions(+) create mode 100755 backup/rsync_backup create mode 100755 backup/rsync_usb create mode 100755 config/bar.sh diff --git a/backup/rsync_backup b/backup/rsync_backup new file mode 100755 index 0000000..af34f76 --- /dev/null +++ b/backup/rsync_backup @@ -0,0 +1,6 @@ +rsync --ignore-existing --delete -azP books /mnt/ssd +rsync --ignore-existing --delete -azP documents /mnt/ssd +rsync --ignore-existing --delete -azP isos /mnt/ssd +rsync --ignore-existing --delete -azP music /mnt/ssd +rsync --ignore-existing --delete -azP pictures /mnt/ssd +rsync --ignore-existing --delete -azP videos /mnt/ssd diff --git a/backup/rsync_usb b/backup/rsync_usb new file mode 100755 index 0000000..1057596 --- /dev/null +++ b/backup/rsync_usb @@ -0,0 +1,2 @@ +rsync --ignore-existing -azP documents /mnt/usb +rsync --ignore-existing -azP pictures /mnt/usb diff --git a/config/bar.sh b/config/bar.sh new file mode 100755 index 0000000..d372371 --- /dev/null +++ b/config/bar.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +while true; do + + # Build the status bar + status_bar="" + status_bar+=" $USER" + status_bar+=" $(cat /sys/class/power_supply/BAT0/capacity)%" + status_bar+=" $( date +"%A %d/%m/%Y %R" )" + + # Set the status bar + xsetroot -name "$status_bar" + sleep 1m + +done &