How to initialize proper command to save files on unraid server

What is the problem you are having with rclone?

I have remote FTP server (smarterasp) and I installed rclone as docker on my Unraid server with default config, and I have also access to experimental WebGUI.

I want to make a crone job which will have just one simple command rclone copy smarterasp: [sourcePath]* [destinationPath]

sourcePath is basically the root folder which has various files but always the last 7 backups of my database

  • CustomBackup_db_a4f7b6_unwctprod_4_24_2024.bak
  • CustomBackup_db_a4f7b6_unwctprod_4_25_2024.bak
  • CustomBackup_db_a4f7b6_unwctprod_4_26_2024.bak
    etc.
    (That's why I put * at the end of thesourcePath)

So I wanted to make a cron job each5 days to trigger the command (see: the command you were trying to run)

Run the command 'rclone version' and share the full output of the command.

  • os/version: arch (64 bit)
  • os/kernel: 5.10.28-Unraid (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Im using Unraid server for pulling data over FTP from remote server.

The command you were trying to run (eg rclone copy /tmp remote:tmp)

This is jus an example of method, but later I will adopt crone job to it and put the asterisk to get always last 7 files, and to ignore those which are already downloaded.

rclone copy smarterasp: CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak /mnt/user/server

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[smarterasp]
type = ftp
host = XXX
user = XXX
pass = XXX
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

2024/04/30 19:40:45 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "copy" "smarterasp:CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak" "/mnt/user/server" "-vv"]
2024/04/30 19:40:45 DEBUG : Creating backend with remote "smarterasp:CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak"
2024/04/30 19:40:45 DEBUG : Using config file from "/home/nobody/.config/rclone/rclone.conf"
2024/04/30 19:40:45 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: Connecting to FTP server
2024/04/30 19:40:45 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: dial("tcp","win6043.site4now.net:21")
2024/04/30 19:40:45 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: dial("tcp","45.58.159.43:40025")
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/30 19:40:46 DEBUG : Creating backend with remote "/mnt/user/server"
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: dial("tcp","45.58.159.43:40026")
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/30 19:40:46 ERROR : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: error reading source root directory: directory not found
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for checks to finish
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for transfers to finish
2024/04/30 19:40:46 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: dial("tcp","45.58.159.43:40027")
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/30 19:40:46 ERROR : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: error reading source root directory: directory not found
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for checks to finish
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for transfers to finish
2024/04/30 19:40:46 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: dial("tcp","45.58.159.43:40028")
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/30 19:40:46 ERROR : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: error reading source root directory: directory not found
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for checks to finish
2024/04/30 19:40:46 DEBUG : Local file system at /mnt/user/server: Waiting for transfers to finish
2024/04/30 19:40:46 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2024/04/30 19:40:46 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.2s

2024/04/30 19:40:46 DEBUG : 5 go routines active
2024/04/30 19:40:46 DEBUG : ftp://win6043.site4now.net:21/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak: closing 1 unused connections
2024/04/30 19:40:46 Failed to copy: directory not found

welcome to the forum,

maybe need a slash
smarterasp:/CustomBackup_db_a4f7b6_unwctprod_4_23_2024.bak

make sure you can list the file, before trying to copy
rclone ls smarterasp: --max-depth=1 -vv
rclone ls smarterasp:/ --max-depth=1 -vv

can you download the files using another ftp tool such as filezilla?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.