2021-08-26 10:47:07 +00:00
|
|
|
# Rclone
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- Rclone w/ WebGUI
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2022-06-24 15:16:09 +00:00
|
|
|
1. You have successfully setup the on boot script described [here](https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script)
|
2021-08-26 10:47:07 +00:00
|
|
|
|
|
|
|
## Steps
|
|
|
|
|
|
|
|
1. Make a directory for your configuration
|
|
|
|
|
2023-02-22 16:49:54 +00:00
|
|
|
```sh
|
|
|
|
mkdir -p /data/rclone
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Create [rclone.conf](https://rclone.org/commands/rclone_config/) in `/data/rclone` and update it to meet yours needs.
|
|
|
|
3. Copy [sync.sh](sync.sh) in `/data/rclone` and update it to meet your needs.
|
|
|
|
4. Copy [10-rclone.sh](10-rclone.sh) to `/data/on_boot.d` and update it to meet your needs.
|
|
|
|
5. Execute `/data/on_boot.d/10-rclone.sh`
|
2021-08-26 10:47:07 +00:00
|
|
|
6. Execute `podman logs rclone`, this will provide a link to the Web GUI.
|
|
|
|
7. Copy [rclone](rclone) in `/etc/cron.hourly/`.
|
|
|
|
8. Set permissions to executable `chmod +x /etc/cron.hourly/rclone`.
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
2023-02-22 16:49:54 +00:00
|
|
|
1. Login to run rclone commands locally to create and test configs
|
2021-08-26 10:47:07 +00:00
|
|
|
|
2023-02-22 16:49:54 +00:00
|
|
|
```sh
|
|
|
|
podman exec -ti rclone /bin/sh
|
|
|
|
```
|