[SLE] Backup using "mount -t smbfs..."

From: Taavi Dovnar (taavid_at_www.luunja.edu.ee)
Date: 02/26/05

  • Next message: Rich Goodwin: "[SLE] Ability to display output to multiple screens"
    Date: Sat, 26 Feb 2005 17:26:33 +0200 (EET)
    To: suse-linux-e@suse.com
    
    

    I have small script doing backup every week. It has worked nicely, but for
    a few weeks it suddenly doesn't work.

    --
    #!/bin/bash
    tobackup="/etc .........."
    kp=$(date +%e-%m-%Y)
    mount -t smbfs -o username=xxx,password=yyy '\\server2\backup' '/var/local/backup'
    tar -czPf /var/local/backup/backup-server1-$kp.tar.gz $tobackup
    umount '/var/local/backup'
    --
    It creates backup file in server1, but does not copy it to server2. I 
    haven't changed anything in servers configuration I think.
    When I enter manually: "mount -t smbfs -o username=xxx,password=yyy 
    //server2/backup /var/local/backup" it says:
    10217: tree connect failed: ERRDOS - ERRnosuchshare (You specified an 
    invalid share name) SMB connection failed
    When I use root & root's password, it mounts nicely. What could be the 
    reason? I have used this script nicely for months. 
    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: Rich Goodwin: "[SLE] Ability to display output to multiple screens"

    Relevant Pages

    • Feedback on backup script
      ... The one problem I have is that the script keeps stopping at lines 633,635 and or 637 with the error "Path Not Found" I have emailed the original author for help but haven't heard back yet. ... I was just wondering if the problem could be that the account running the script doesn't have correct permissions to a share/directory/file that it's trying to backup? ... ' always one less than the actual number of folders. ... ' Show the user free space info on all available disk drives ...
      (microsoft.public.scripting.vbscript)
    • Re: Enterprise Manager Newbie Question
      ... a SQL backup is not a simple copy of the database files. ... Is it possible to write a script that one could run from a workstation and ...
      (microsoft.public.sqlserver.tools)
    • Re: xcopy and vbscript
      ... It takes about 5-6 minutes to backup approximately ... A copy of the script is below for reference. ... ObjShell.Popup strMessage, 5, "Backup Complete", OK_Button ... Dim sSrc, sDest ' as string ...
      (microsoft.public.scripting.vbscript)
    • Re: batch file to delete files based on criteria
      ... >> I need to throw together a simple batch file to backup a file. ... >> schedule this via Task Scheduler to run every hour or so. ... > Create a snapshot backup when a file changes. ... >!Snapshot script from inside Windows Explorer. ...
      (microsoft.public.win2000.cmdprompt.admin)
    • Re: How do I move an account... A few more details... and more
      ... >> use this system as a backup system if the first ever goes down. ... >> rsync for this. ... >serv1 and the system you back up to is fs. ... >rsync script. ...
      (Fedora)