Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-15-2009, 06:59 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
adding a network location to a bash script command

Hi all,
i bet this is a silly question, but maybe that's why i can't find the answer for the last hours...
i needed to cron a backup of a directory from another computer to my server, i managed to figure all the cron things, i used a samba share to mount the folder i wanted, but now i can't seem to find a way to direct the rsync command to it. i tried somthing like this but its obviously not the way:
mkdir /backup/$dt
rsync -r --progress -avze ssh /"some mounted drive" /backup/$dt/
the $dt simply a var that creates a folder with the date as name.
the rsync command is my problem...
can anyone tell me how to define a mounted drive as the source for the files to copy?

Last edited by yandos; 03-15-2009 at 07:00 AM.
Old 03-15-2009, 07:20 AM   #2
LQ Newbie
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Ok i thing me got it .
i used the gui to create the mount. now i did it from the start using the smbclient to mount it into a directory, and now simply used the directory where i mounted it as the source for backup files .
if someone could please still answer me it would be great - if i mount a network drive using the gui, how can i access it from bash?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding dynamic command parameters in a Bash script haydenyoung Programming 3 08-29-2008 12:20 AM
Adding timestamp to a BASH script thefox Linux - Software 1 11-10-2007 10:29 PM
Adding script file on Bash greatmenon Linux - Software 1 01-21-2006 08:14 AM
adding a rotating - to my bash script Cinematography Programming 3 08-31-2005 02:05 PM
Need help adding an IF / ELSE statement to my Bash Script Relix Linux - General 1 08-01-2002 03:03 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration