Re: RE: Hi, about SaraB
"Alfredo Tripicchio @ Pointel" <[email protected]> Thu, 18 Nov 2004 10:03:06 +0100
| Newsgroups | gmane.comp.sysutils.backup.sarab |
|---|---|
| Message-ID | <003101c4cd4d$6afa9740$13c9a8c0@TRIPICCHIO> |
I agree with you, Tristan. A simple bash script will do. Here's what I use
from daily cron (/etc/cron.daily/backup), hope it helps, Xavi.
#!/bin/sh
# define the remote backup server
remote_server=nas.pointel.localzone
# first check that the NAS is reachable
ping -c 1 $remote_server 1>/dev/null 2>/dev/null
if [ $? != 0 ]
then
echo $remote_server "IS NOT REACHABLE"
exit;
else
echo $remote_server "IS REACHABLE"
# mount the remote partition
/bin/mount -o rw $remote_server:"E:\web" /mnt 1>/dev/null
2>/dev/null
# now check that the partition on the NAS is mounted
if [ $? != 0 ]
then
echo $remote_server "IS NOT MOUNTED"
exit;
else
echo $remote_server "IS MOUNTED"
# run SaraB (shell script that automates backups using dar,
i.e. Disk Archiver)
/usr/local/sarab/sarab.sh
fi
# unmount the remote partition
/bin/umount /mnt
fi
Cheers,
Alfredo
----- Original Message -----
From: "Tristan Rhodes" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Thursday, November 18, 2004 4:44 AM
Subject: [SaraB] RE: Hi, about SaraB
> Hello Xavi,
>
> Thanks for your interest. I haven't put a feature like that in SaraB yet,
> because I am not sure how useful it would be.
>
> If you needed to run a command before and after SaraB, I would make a
> simple script that does the commands and starts SaraB.
>
> #!/bin/bash
>
> mount command here
> /usr/local/sarab/sarab.sh
> umount command here
>
> # End of script
>
> Call that script from cron to automate the process. Will that do what you
> need? I don't think I will add that to SaraB, unless many users request
> it.
>
> Please send any questions or comments about SaraB to the mailing list.
> ([email protected] ) I love user input!
>
> Tristan
>
>>hi!
>>
>>My name's xavi and i want to ask you a simple and short
>>question: are you going to implement an option to execute
>>a command before the backup and after it? it would be
>>intereseting if you want to mount a samba volume, or
>>novel volume for example.
>>
>>I don't know if it's implemented yet in the actual version...
>>(my bash isn't very well so far).
>>
>>If it's implemented, could you tell me how i can do that?
>>if it isn't... i will try to do it myself ;)
>>if it works i can send you the result.
>>
>>Well, thx anyway!
>>
>>Xavi
>
> _________________________________________________________________
> Check out Election 2004 for up-to-date election news, plus voter tools and
> more! http://special.msn.com/msn/election2004.armx
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> SaraB-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sarab-discuss
>
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8