What's new

RT-AC68U Rclone

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

yop16

New Around Here
Hello, sorry for my english, I can intall Rclone with
Objective-C:
opkg install rclone
But is imposible to open the rclone config
anywere can help me?
 
Have a look here;


It may be that you need to specify a location for the config file.
 
Did a few more little searches. What router are you using? Seems that some routers may not be able to run rclone (kernel 2.6). Did also find this, don't know if it will be of any help, but I offer it anyway;

 
Works fine for me yop16 with RTAX86U - you just have to specify config file on the USB with "--config".

I even made a funky script to monitor a directory for creation of a PDF (sent by my scanner over samba share) and, upon detection of a new PDF, upload it to OneDrive, as follows:

Code:
#!/bin/bash

log_file="/mnt/-/upload-scans-log.txt"
rclone_config_file="/mnt/-/rclone_config"
scans_dir="/mnt/-/shares/Scanned Documents/"
upload_dir="OneDrive:/Scanned Documents/"

while [[ true ]]; do

        if ! rclone --config "$rclone_config_file"  move "$scans_dir" "$upload_dir" --include "*.pdf" 2>&1 >>"$log_file"; then
                break
        fi

        if ! inotifywait -r -e modify,create,move --include "\.pdf" --format '%T %:e %f' --timefmt '%c' "$scans_dir"  2>&1 >>"$log_file"; then
                break
        fi

done

This requires 'inotifywait' to be install using opkg.
 
Last edited:
Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top