1) Mount the samba share. The command will look something like:
sudo mount -t cifs //servername/dir /home/username/mountdir -o password=password user=username
The -t option specifies the filesystem (cifs = samba). The servername/dir is the remote directory to mount and the /home/username is the local directory to mount to.
Note: smbfs needs to be installed for this to work: sudo apt-get smbfs
To learn more options, read man mount.cifs.
2) Copy files.
3) Unmount samba share:
sudo umount /home/username/mountdir
No comments:
Post a Comment