That (smb://......) will not work. you will need to mount your NAS into empty real directory on the filesystem - either on command line using mount (as root) or by adding it to /etc/fstab and letting the system mount it at boot for you.
I understand from google that Thunar is some GUI file manager which interprets smb://..... and create its own temporary SMB mount at run time. This is unfortunately not usable by any command line commands as they are not able to interpret smb://... URL the same way. I suggest that you look at using nfs again as it is easier to work with, without publishing your SMB password in /etc/fstab Here is an example of nfs mount line for /etc/fstab 192.168.1.10:/volume1 /nfs nfs4 defaults,noauto,users 0 0 1. you need to: mkdir /nfs 2. with user you will be able to mount and umount as user on demand if your NAS is not guaranteed to be always available. 3. the mount command with the above in place: mount /nfs 4. umount as above: umount /nfs Best luck, Tomas On Saturday, July 09, 2016 11:00:17 AM John Jason Jordan wrote: > On Fri, 08 Jul 2016 23:55:16 -0700 > > Tomas Kuchta <[email protected]> dijo: > >if you add rsync --delete option then rsync will delete remote files > >as you describe. For the safety of your files, maybe you should > >consider enabling snapshots or do some safeguarding with your mirror > >scripts. > > > >It would be unfortunate to loose all the NAS backup files just because > >you accidentally deleted your USB drive or forgot to mount it or > >something. > > I can see I'm going to have to spend a lot of time studying rsync. But > for starters I decided to use cp to see if I know how to specify the > destination. Thunar displays a window with files in the destination and > at the top of the window is a location bar. It says > 'smb://synology.local/synology/.' So from the command line in the > directory where the USB drive is mounted I did > > cp <a small file> smb://synology.local/synology/ > cp: cannot create regular file ‘smb://synology.local/synology/’: No > such file or directory > > I also tried it without the trailing slash and again with a slash > in front and got the same results. Then I tried adding http:// in > front, but still no joy. For my last effort I specified the destination > by the ip address of the Synology (192.168.0.101), and this time I got > no error message, but it also failed to copy the file. However, when I > added a slash in front of the ip address I got 'cp: cannot create > regular file ‘/192.168.0.101’: Permission denied.' This reminds me that > before Thunar would show the contents of the Synology I had to log into > the share. > > I'm out of ideas. Suggestions? > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
