Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 15350  / 3 Years ago, wed, october 27, 2021, 9:04:09

I want to mount a shared directory on my mac into a folder on my Ubuntu server so that I can copy backup files to the mac using some sort of automation.



Before I even start on the whole automation thing I would like to be able to mount the directory manually.



Oh how I have Googled! I have come up with many versions the mount command. The one that came closest to working (that is, it asked for my password and didn't object to the answer) was this:



sudo mount -o user=**** //192.168.1.4/server_backups /files/mountpoint


It produced the following error:



mount error(95): Operation not supported


Am I on the right track? I have tried various versions of the command. Either it fails on authentication or I get the above error.



Any help or advice would be greatly appreciated,



thanks,



Simon.


More From » mount

 Answers
3

A shared folder is not the great way if you want to automate backups to your Mac



Instead enable SSH on the Mac on and transfer your backups over it.



Go into System Preferences’. Under ‘Internet & Networking’ there is a ‘Sharing’ icon. Run that. In the list that appears, check the ‘Remote Login.



Since you want to use automation. this will serve quite good.



Here is an example of how copy a folder from your Ubuntu computer to your mac



rsync -azvr /path/to/source/folder MAC:/path/to/where/you/want/to/saveit/


where MAC is the ip address of your mac
the good thing with rsync that if you re-run this command it will only copy the changed files from the source directory over to your mac saving time and bandwidth.



the z flag adds compression. If you are copying a lot of already compressed files like movies, images or mp3s you don't gain any speed in using it



If you still want some kind of drive mapping so you can browse the computer from GUI.
It can also be done over ssh with the help of sshfs



on your Ubuntu computer install sshfs. Then add your user to the fuse group and finally mount the remote server



from terminal:



sudo apt-get install sshfs # install sshfs
mkdir macfolder
sshfs username@MAC:/ macfolder


will mount your mac root filesystem under the folder macfolder


[#23902] Friday, October 29, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mentpengu

Total Points: 148
Total Questions: 114
Total Answers: 119

Location: Anguilla
Member since Sun, Aug 7, 2022
2 Years ago
mentpengu questions
Sun, Apr 17, 22, 18:09, 2 Years ago
Fri, Aug 12, 22, 01:35, 2 Years ago
Tue, Jul 26, 22, 14:52, 2 Years ago
;