LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-14-2012, 06:49 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Backup from windows to linux failed


I had performed a backup from windows to linux by mapping a drive but the map drive get fail after logout,how can I make the map drive stable after logout as well ?
 
Old 09-14-2012, 07:06 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272
would be nice to tell us how did you share and how did you map that drive
 
Old 09-14-2012, 08:46 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
autofs should work for you as it is just a simple cifs mount point.
 
Old 09-14-2012, 09:42 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What do you mean by 'map drive get fail after logout'? Please give more specific detail. Which host was the server, and which was the client (where was the shared disk)? What is different about the use of the shared drive as a backup store compared to an 'ordinary' shared resource?

Your scenario involves two distinct hosts. Please describe the setup with terms that clearly distinguish the roles of each host. For example, "the Windows client host mounts a CIFS share on the Linux server".

--- rod.

Last edited by theNbomr; 09-14-2012 at 09:45 AM.
 
Old 09-14-2012, 10:40 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
http://forum.xbmc.org/showthread.php?tid=69146 lists the general steps to make it persistent.

You may be able to just double click on the share depending on your distro.
 
Old 09-17-2012, 02:01 AM   #6
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Actually, I want to take a backup from windows to my centos machine where samba is configured & sharename & path is define as,

sharename=share
Path=/opt/share

so I mounted the share on windows through the command as,
net use * \\<samba server ip>\<share name> /user:<samba username> <password> /PERSISTENT:YES

As the path is mounted in windows & also copied my data from d:/ to my mount share as z:/ but when I logout my windows machine then the mount share get disconnected so I have to again mount with providing username & password or through a .bat file.

so I require that the mount share/drive remain connected if I logout from my windows machine as well.
 
Old 09-17-2012, 03:24 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272
here you can find some tips: http://stackoverflow.com/questions/1...d-by-a-service
 
1 members found this post helpful.
Old 09-17-2012, 08:09 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I have not use capital letters for persistent. Not sure if that matters but..

"/persistent: { yes | no } : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections. "

http://technet.microsoft.com/en-us/l.../bb490717.aspx

Also what is this? "use * "
Shouldn't it be
net use [{DeviceName | *}]
but you are not using a device.
 
1 members found this post helpful.
  


Reply


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
LXer: Rsync Backup for Windows, Linux Knoppix, and Other Smart Technologies in Handy Backup by Novos LXer Syndicated Linux News 0 12-24-2011 12:43 PM
selfcheck request failed for AMANDA backup of Red Hat Enterprise Linux 4 koopa13 Linux - Newbie 3 06-10-2010 08:19 AM
[SOLVED] Linux HDD backup under windows - looking for backup utility SigTerm General 1 01-27-2010 12:54 PM
Windows Backup Software (diff backup without archive bit) nkhajanchi.mg@gmail.com Linux - Software 4 09-09-2009 10:29 AM
XP Backup/Restore from Linux failed - Help please!!! clint_in_sydney Linux - Hardware 6 08-10-2006 10:08 AM


All times are GMT -5. The time now is 11:55 AM.

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