• We did not send an email asking for donations - please read this post.

bash command to access smb and copy automatically



Dear Guru/Master of Samba especially master of Bash Command,

i have qnap server , and from my client (linux) want to access samba server on qnap
and copy automatically

1. smbclient to samba to make a folder "folder-TodayDATE"
example : folder-27okt12

2. then copy file from my linux to that folder
cp myfile.sav myfile-todayDate
auto add -todayDate

3. then exit.

for the above 3steps, i want to make it 1file bash, and put it in crontab -e.



$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

Latest posts