I'm trying to back up my Shell scripts from my Linux machine, and I have installed RCLONE and have managed to back up some of my files just fine. But I then created a new script and tried to upload the folder to the cloud again, so everything was synced.
I did look up what a regular file is and I saw that test -f <file>; echo $? should return a 0 if the file is regular and if I run that on sys_check.sh, I do get a 0, so I'm not sure why it's saying the file isn't regular.
What is your rclone version (output from rclone version)
1.53.4
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Raspberry Pi OS (32-bit)
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
2021/01/21 18:53:24 ERROR : Attempt 1/3 failed with 1 errors and: is not a regular file
2021/01/21 18:53:24 ERROR : Attempt 2/3 failed with 1 errors and: is not a regular file
2021/01/21 18:53:25 ERROR : Attempt 3/3 failed with 1 errors and: is not a regular file
2021/01/21 18:53:25 Failed to copy: is not a regular file
pi@raspberrypi:~ $ ls -al /home/pi/Scripts/sysinfo/sys_check.sh
-rwxr-xr-x 1 pi pi 439 Jan 21 21:17 /home/pi/Scripts/sysinfo/sys_check.sh
pi@raspberrypi:~ $ file /home/pi/Scripts/sysinfo/sys_check.sh
/home/pi/Scripts/sysinfo/sys_check.sh: Bourne-Again shell script, ASCII text executable
Right so you'd see the new file, correct? It'll copy to a directory so you can use whatever path you want:
felix@flux:~$ rclone copy /etc/hosts /home/felix/testme
felix@flux:~$ ls -al testme
total 12
drwxr-xr-x 2 felix felix 4096 Jan 22 14:17 .
drwxr-xr-x 9 felix felix 4096 Jan 22 14:17 ..
-rw-r--r-- 1 felix felix 405 Jan 20 10:29 hosts
pi@raspberrypi:~ $ ls -al /home/pi/Scripts/sysinfo/
total 24
drwxr-xr-x 3 pi pi 4096 Jan 22 19:13 .
drwxr-xr-x 5 pi pi 4096 Jan 21 22:51 ..
-rwxr-xr-x 1 pi pi 110 Jan 21 22:37 get_versions.sh
-rwxr-xr-x 1 pi pi 439 Jan 21 21:17 sys_check.sh
drwxr-xr-x 2 pi pi 4096 Jan 22 19:13 sys_check.sh-test
-rwxr-xr-x 1 pi pi 170 Jan 21 22:38 temp_test.sh
pi@raspberrypi:~ $ ls -al /home/pi/Scripts/sysinfo/sys_check.sh-test/
total 12
drwxr-xr-x 2 pi pi 4096 Jan 22 19:13 .
drwxr-xr-x 3 pi pi 4096 Jan 22 19:13 ..
-rw-r--r-- 1 pi pi 439 Jan 21 21:17 sys_check.sh