From 648531c3cdc159fb90823dcd516d999d9d942036 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 31 Jul 2022 18:13:32 -0500 Subject: [PATCH] Rename OneDriveSync -> OneDriveBk --- OneDriveSync => OneDriveBk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename OneDriveSync => OneDriveBk (67%) diff --git a/OneDriveSync b/OneDriveBk similarity index 67% rename from OneDriveSync rename to OneDriveBk index 4a305d4..506b912 100644 --- a/OneDriveSync +++ b/OneDriveBk @@ -1,7 +1,7 @@ #!/bin/sh -# For syncing some files with OneDrive -# Assumes that the sync target is set up as OneDrive:Syncs in rclone +# For backing up files with OneDrive +# Assumes that the backup target is set up as OneDrive in rclone if [ $(id -u) -eq 0 ]; then exec sudo -H -u sintan $0 "$@" @@ -20,7 +20,7 @@ notify() { sudo -u $user DISPLAY=$display DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus notify-send -a rclone -h string:desktop-entry:alacritty "$@" } -notify "OneDrive sync" "Sync started..." -flock -n /tmp/onedrivesync.lock rclone sync -c -L --log-file="/home/sintan/TempStorage/OneDriveSync.log" --log-level INFO "/home/sintan/TempStorage/OneDrive/" OneDrive:Syncs -notify "OneDrive sync" "Sync finished!" +notify "OneDriveBk" "Backup started..." +flock -n /tmp/onedrivesync.lock rclone sync -c -L --log-file="/home/sintan/TempStorage/OneDriveBk.log" --log-level INFO "/home/sintan/TempStorage/OneDrive/" OneDrive:Backup +notify "OneDriveBk" "Backup finished!"