LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2011, 04:48 PM   #1
Atomiccomp02
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Rep: Reputation: Disabled
mounting and backingup files to a usb drive in debian


Hi guys,

I have a question?!
I have a linux server which was administered by my good friend who has passed away and I have been asked to take over. the server has debian installed (installed oct 2008 and would have been the latest version)
and I am looking to backup the smb shares to a external usb disc. I have formatted and mounted the disc and found a script he wrote to automate the backup run from a cron tab. Looking through the script the mount commands dont look quite right to me particulary as the owner will swap drives every day. everything else appears to be working fine!
the command to mount in the script is'

mount /mnt/usb

and unmount;
unmount /mnt/usb

I think it should be' mount /dev/sdc1 /mnt/usb
and to unmount . umount /dev/sdc1 /mnt/usb

am I talking nonsense here or I on the right track?

Thanks in advance!
Mick j

 
Old 06-15-2011, 06:08 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
You can check to see if he created a bash alias 'unmount' for umount. They are usually created in /etc/bashrc and/or ~/.bashrc.

Otherwise, as long as /mnt/usb is in /etc/fstab, it should probably work okay.
 
Old 06-15-2011, 06:45 PM   #3
Atomiccomp02
LQ Newbie
 
Registered: Jun 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks,

i will check, however i tested the /mnt/usb mount and backup and all went well.
 
  


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
mounting USB drive at boot -- Debian MrUmunhum Linux - General 1 03-06-2011 06:48 PM
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 01:46 PM
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
Mounting a USB-based external drive - Debian strattonbrazil Linux - Hardware 2 01-10-2006 08:18 PM
when backingup directories, how to detect files already exist WarriorWarren Linux - General 10 04-06-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:00 PM.

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
Open Source Consulting | Domain Registration