LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mounting and backingup files to a usb drive in debian (https://www.linuxquestions.org/questions/linux-server-73/mounting-and-backingup-files-to-a-usb-drive-in-debian-886593/)

Atomiccomp02 06-15-2011 04:48 PM

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

:study:

pljvaldez 06-15-2011 06:08 PM

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.

Atomiccomp02 06-15-2011 06:45 PM

Thanks,

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


All times are GMT -5. The time now is 06:07 AM.