mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 04:48:37 -06:00
Rename OneDriveSync -> OneDriveBk
This commit is contained in:
parent
bb9bc568a7
commit
648531c3cd
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# For syncing some files with OneDrive
|
# For backing up files with OneDrive
|
||||||
# Assumes that the sync target is set up as OneDrive:Syncs in rclone
|
# Assumes that the backup target is set up as OneDrive in rclone
|
||||||
|
|
||||||
if [ $(id -u) -eq 0 ]; then
|
if [ $(id -u) -eq 0 ]; then
|
||||||
exec sudo -H -u sintan $0 "$@"
|
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 "$@"
|
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..."
|
notify "OneDriveBk" "Backup 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
|
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 "OneDrive sync" "Sync finished!"
|
notify "OneDriveBk" "Backup finished!"
|
||||||
|
|
Loading…
Reference in a new issue