• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Gun Forums

bash command to access smb and copy automatically

S

sr88

Guest
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.

thx.


Hong:eek:
 





Latest posts

Top