Really dumb ultra minor error - that I just can't see

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I have a script that runs as a cronjob once a day. It copies all the various scripts that I have to another folder for backup purposes.

This is the script
---------------------------
#!/bin/sh
cp -vR /mnt/LittlePool/FreeBSD/Scripts/* to /mnt/BigPool/SMB/Chaos/Documents/Network/FreeNas/Backup/
---------------------------

Whenever it runs I get an error
"cp: to: No such file or directory" and I have no idea why - I can't see any reason for it. All the files seem to copy correctly

The Scripts folder has 2 sub folders and a number of files in it and in the sub folders.

I know I am being dumb - I just can't see it
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
Oh FFS how did I not see that

Sigh

Thank you
 
Top