I have a file that I want to run daily to backup data. This tgz file then needs to be copied to a Windows 2003 server. I'm using smbclient, but it does not seem to work thru the script. Can someone point out where the problem lies. I run this as a cron job as follows:
30 19 * * 1,2,3,4,5 root /root/rubybackup.sh
The script is as follows:
#!/bin/sh
# script to automate the backup of the Ruby server to the W2K3 server
#
DAY=`date +'%a-%d-%m-%y'`
BACKUPDIR=/backup
RUBYLIVE=/var/lib/mysql/
cd $RUBYLIVE
tar -czvf /backup/rubylive${DAY}.tgz ./rubylive
cd $BACKUPDIR
smbclient //server/backup tfc651800 -U administrator
put rubylive${DAY}.tgz
Re: running backup ... # script to automate the backup of the Ruby server to the W2K3 server... result in a partially- or completely-useless backup.... You should really backup MySQL databases using mysqldump instead. ... (Debian-User)
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)