- 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
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