l3uddz / cloudplow

Automatic rclone remote uploader, with support for multiple remote/folder pairings. UnionFS Cleaner functionality: Deletion of UnionFS whiteout files and their corresponding files on rclone remotes. Automatic remote syncer: Sync between different remotes via a Scaleway server instance, that is created and destroyed at every sync.
GNU General Public License v3.0
345 stars 46 forks source link

non-default config location upload , config not found #122

Closed TMD20 closed 2 years ago

TMD20 commented 2 years ago

Hello

I think their is a bug with getting non-default config files

rclone_data = subprocess.check_output('rclone config dump', shell=True)

This leads to issues if the config file is not in a default location as their will be no remotes in rclone_data

As it will check for the config in /config/rclone/rclone.conf as stated here https://rclone.org/docs/#config-config-file

A temporary fix would be to add the rclone_config enviromental variable.

But a more permanent one would be to change the line to

rclone_data = 
subprocess.check_output('rclone config --config={cmd_quote(self.rclone_config_path)} dump', shell=True)
saltydk commented 2 years ago

Should be fixed now, sorry for the slow response.