I have a synology NAS with the ability to run scripts. I'm looking to automatically move files from one directory to another, for backup to cloud. I'm nearly there, but cant seem to get the final piece into place. Any help appreciated.
The error returned is: mv: target '/volume1/destination/\r' is not a directory"
Why is it placing a \r after the path?? For some reason, it's including the \r as part of the path, as seen by the single quotation makrs. Nothing is being moved, obviously.
Just a suggestion. Rsync might be a better choice than move. It's got a steep learning curve, but you can do copy->validate->delete to ensure things are moved and present.