hey! so I got a problem, most likely cause im new to unraid lol
So I got the upload script to work as expected, files are passed to gdrive with encryption, then removed from local.
My problem is with my mount script I assume.
In the console running rclone lsd gdrive: or running rclone lsd gdrive_crypt: returns all of my folders as expected. However when I run my mount script the folder is empty.
Here is my config stuff:
[gdrive]
type = drive
client_id = *****
client_secret = *****
scope = drive
token = {"access_token":*****"}
[gdrive_crypt]
type = crypt
remote = gdrive:crypt
filename_encryption = standard
directory_name_encryption = true
password = ****
password2 = ******
and here is my mount script
RcloneRemoteName="gdrive_crypt"
RcloneMountShare="/mnt/user/the_stuff/gdrive"
RcloneMountDirCacheTime="720h"
LocalFilesShare="/mnt/user/the_stuff/local"
RcloneCacheShare="/mnt/user0/the_stuff/gdrive"
RcloneCacheMaxSize="400G"
RcloneCacheMaxAge="336h" s
MergerfsMountShare="/mnt/user/mount_mergerfs"
DockerStart="nzbget plex sonarr radarr ombi"
here is the output of it
(
Script location: /tmp/user.scripts/tmpScripts/rclone_mount_plugin/script
Note that closing this window will abort the execution of this script
12.11.2020 19:00:00 INFO: Creating local folders.
12.11.2020 19:00:00 INFO: Creating MergerFS folders.
12.11.2020 19:00:00 INFO: *** Starting mount of remote gdrive_crypt
12.11.2020 19:00:00 INFO: Checking if this script is already running.
12.11.2020 19:00:00 INFO: Script not running - proceeding.
12.11.2020 19:00:00 INFO: *** Checking if online
12.11.2020 19:00:02 PASSED: *** Internet online
12.11.2020 19:00:02 INFO: Success gdrive_crypt remote is already mounted.
12.11.2020 19:00:02 INFO: Check successful, gdrive_crypt mergerfs mount in place.
12.11.2020 19:00:02 INFO: Starting dockers.
Error response from daemon: No such container: nzbget
Error response from daemon: No such container: plex
Error response from daemon: No such container: sonarr
Error response from daemon: No such container: radarr
Error response from daemon: No such container: ombi
Error: failed to start containers: nzbget, plex, sonarr, radarr, ombi
12.11.2020 19:00:02 INFO: Script complete
and here is my upload script
# REQUIRED SETTINGS
RcloneCommand="move" # choose your rclone command e.g. move, copy, sync
RcloneRemoteName="gdrive_crypt" # Name of rclone remote mount WITHOUT ':'.
RcloneUploadRemoteName="gdrive_crypt" # If you have a second remote created for uploads put it here. Otherwise use the same remote as RcloneRemoteName.
LocalFilesShare="/mnt/user/the_stuff/local" # location of the local files without trailing slash you want to rclone to use
RcloneMountShare="/mnt/user/the_stuff/gdrive" # where your rclone mount is located without trailing slash e.g. /mnt/user/mount_rclone
MinimumAge="15m" # sync files suffix ms|s|m|h|d|w|M|y
ModSort="ascending" # "ascending" oldest files first, "descending" newest files first
(it outputs this:
12.11.2020 19:23:06 INFO: *** Rclone move selected. Files will be moved from /mnt/user/the_stuff/local/gdrive_crypt for gdrive_crypt ***
12.11.2020 19:23:06 INFO: *** Starting rclone_upload script for gdrive_crypt ***
12.11.2020 19:23:06 INFO: Script not running - proceeding.
12.11.2020 19:23:06 INFO: Checking if rclone installed successfully.
12.11.2020 19:23:06 INFO: rclone installed successfully - proceeding with upload.
12.11.2020 19:23:06 INFO: Uploading using upload remote gdrive_crypt
12.11.2020 19:23:06 INFO: *** Using rclone move - will add --delete-empty-src-dirs to upload.
2020/11/12 19:23:06 DEBUG : --min-age 15m0s to 2020-11-12 19:08:06.429286925 -0800 PST m=-899.987925388
2020/11/12 19:23:06 DEBUG : rclone: Version "v1.53.2" starting with parameters ["rcloneorig" "--config" "/boot/config/plugins/rclone/.rclone.conf" "move" "/mnt/user/the_stuff/local/gdrive_crypt" "gdrive_crypt:" "--user-agent=gdrive_crypt" "-vv" "--buffer-size" "512M" "--drive-chunk-size" "512M" "--tpslimit" "8" "--checkers" "8" "--transfers" "4" "--order-by" "modtime,ascending" "--min-age" "15m" "--exclude" "downloads/**" "--exclude" "*fuse_hidden*" "--exclude" "*_HIDDEN" "--exclude" ".recycle**" "--exclude" ".Recycle.Bin/**" "--exclude" "*.backup~*" "--exclude" "*.partial~*" "--drive-stop-on-upload-limit" "--bwlimit" "01:00,off 08:00,15M 16:00,12M" "--bind=" "--delete-empty-src-dirs"]
2020/11/12 19:23:06 DEBUG : Creating backend with remote "/mnt/user/the_stuff/local/gdrive_crypt"
2020/11/12 19:23:06 DEBUG : Using config file from "/boot/config/plugins/rclone/.rclone.conf"
2020/11/12 19:23:06 INFO : Starting bandwidth limiter at 12MBytes/s
2020/11/12 19:23:06 INFO : Starting HTTP transaction limiter: max 8 transactions/s with burst 1
2020/11/12 19:23:06 DEBUG : Creating backend with remote "gdrive_crypt:"
2020/11/12 19:23:06 DEBUG : Creating backend with remote "gdrive:crypt"
2020/11/12 19:23:06 DEBUG : Google drive root 'crypt': root_folder_id = "****" - save this in the config to speed up startup
2020/11/12 19:23:06 DEBUG : downloads: Excluded
2020/11/12 19:23:07 DEBUG : Encrypted drive 'gdrive_crypt:': Waiting for checks to finish
2020/11/12 19:23:07 DEBUG : Encrypted drive 'gdrive_crypt:': Waiting for transfers to finish
2020/11/12 19:23:07 DEBUG : tv: Removing directory
2020/11/12 19:23:07 DEBUG : movies: Removing directory
2020/11/12 19:23:07 DEBUG : Local file system at /mnt/user/the_stuff/local/gdrive_crypt: deleted 2 directories
2020/11/12 19:23:07 INFO : There was nothing to transfer
2020/11/12 19:23:07 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time: 0.7s
2020/11/12 19:23:07 DEBUG : 7 go routines active
12.11.2020 19:23:07 INFO: Not utilising service accounts.
12.11.2020 19:23:07 INFO: Script complete
)
going to this path
/mnt/user/the_stuff/gdrive
contains /cache and /gdrive_crypt both are empty
I know in spaceinvaders tutorial his mount script ran in background but when I try to do that it runs for a second then stops. However if i run it once it says it mounted and then if I try again it says that it already mounted.
Please let me know if you need me to provide more info, thanks a lot for the help! and thanks for the scripts!