This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# can be used in cron, systemd timers, or similar | |
# *requires rclone setup with a functional remote* | |
# - if running as root, rclone must also be setup on root, e.g. with sudo | |
LOCAL_DIRECTORY=/home/user/stuff # edit | |
REMOTE_DIRECTORY=remote:backup # edit, format: <remote name>:<remote directory> | |
TEMP_DIRECTORY=/tmp/rsync-backup-tmp | |
try() { |