-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
jed, but it's been fixed.
- -Original Message-
From: Zhi Cheng Wang [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 03, 2003 8:35 AM
To: [EMAIL PROTECTED]
Subject: RE: backup script
what text editor did you use to write the s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, 3 Apr 2003 05:22:25 -0800, Burke, Thomas G. wrote:
> if I put in the #!/bin/sh, I just get the following:
>
> bash: ./backup: No such file or directory
>
> ugh. I don't get it. I've seen this problem when things have the
> wrong styl
* Thomas G. Burke
> if I put in the #!/bin/sh, I just get the following:
>
> bash: ./backup: No such file or directory
>
> ugh. I don't get it. I've seen this problem when things have the
> wrong style of quote before, but I don't see that as a problem
> here... or is it?
(Incredible di
what text editor did you use to write the script?
-Original Message-
From: Burke, Thomas G. [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 14:22
To: '[EMAIL PROTECTED]'
Subject: RE: backup script
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
if I put in the #!/bin/sh, I ju
here... or is it?
- -Original Message-
From: Bret Hughes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:58 PM
To: [EMAIL PROTECTED]
Subject: RE: backup script
On Wed, 2003-04-02 at 13:04, Burke, Thomas G. wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
&
On Wed, 2003-04-02 at 13:04, Burke, Thomas G. wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Here's the error when I run the script as is:
>
> [EMAIL PROTECTED] /backup]# ./backup
> : command not found
> : No such file or directory
> : command not found
> ./backup: ./backup: line 7:
the script:
BACKUP_DIRECTORY=/backup/tomii
SOURCE_DIRECTORY=/
cd $SOURCE_DIRECTORY
for i in * ; do tar -zcvf "$BACKUP_DIRECTORY/$i.tgz" $i ; done
- -Original Message-
From: Bret Hughes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:25 PM
To: [EMAIL PROTECTED]
Subject: RE: ba
On Wed, 2003-04-02 at 09:11, Burke, Thomas G. wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> What do you need to do to run this script, or one like it? I tried
> adding a #!/bin/sh to the beginning, but it just chokes. I have
> installed perl, but never really used it, so if it's a
ssage-
From: Carlo Feliciano N. Aureus [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 12, 2003 1:31 AM
To: [EMAIL PROTECTED]
Subject: RE: backup script
Hi,
I usually use below script to backup every directory, which are under
SOURCE DIRECTORY, in a tar.gz format and store them in my backup
dire
Hi,
I usually use below script to backup every directory, which are under
SOURCE DIRECTORY, in a tar.gz format and store them in my backup
directory.
---
BACKUP_DIRECTORY=
SOURCE_DIRECTORY=
cd $SOURCE_DIRECTORY
for i in * ; do tar cvfz "$BACKUP_DIRECTORY/$i.
On Fri, 2003-03-28 at 11:14, Steve Buehler wrote:
> Ok. I ended up finding the answer right after writing the email.
>
> cd /home/
> dirs=`ls -d *`
> cd /root
> for II in $dirs; do
> TAR=`tar -czvf /root/$II.tgz /home/$II`
> done
>
BTW I don't think this will get hidden files/dirs ( th
Ok. I ended up finding the answer right after writing the email.
cd /home/
dirs=`ls -d *`
cd /root
for II in $dirs; do
TAR=`tar -czvf /root/$II.tgz /home/$II`
done
Thanks
Steve
At 11:05 AM 3/28/2003 -0600, you wrote:
RedHat Linux 7.3
I am trying to create a backup script (/bin/sh type) th
On Fri, 24 Jan 2003, Andy wrote:
> So I can either put " /dev/null 2>&1 " in the script itself or I can put
> it at the end of the crontab file such as this:
Yup. Putting it in your script in various places can help you fine-tune
what will be emailed (if anything). Putting it in the crontab mean
On Thu, 23 Jan 2003, Cowles, Steve wrote:
>ls > dirlist 2>&1
I stand corrected. It *is* a little counter-intuitive, though, to have the
file descriptors modified AFTER the redirection.
--
"Of course I'm in shape! Round's a shape, isn't it?"
--
redhat-list mailing list
unsubscribe mailt
>>Do this:
>>tar > /dev/null 2>&1
>>That should work.
---
>Yes...it's cron. To stop it from mailing you, add this to the end of the
> line in root's crontab:
> > /dev/null 2>&1
-
So I can eith
> -Original Message-
> From: Todd A. Jacobs
> Sent: Thursday, January 23, 2003 5:28 PM
> Subject: Re: backup script sends large email to root?
> Is it cron doing it?
>
>
> On Thu, 23 Jan 2003, Bapi Ghosh wrote:
>
> > tar > /dev/null 2>
On Thu, 23 Jan 2003, Bapi Ghosh wrote:
> tar > /dev/null 2>&1
This is backwards. You needs to redirect stderr before redirecting stdout:
foo 2>&1 > /dev/null
Or, the MAILTO line in the crontab can be tweaked (it works in a top-down
fashion):
# Mail results to [EMA
Yes...it's cron. To stop it from mailing you, add this to the end of the
line in root's crontab:
> /dev/null 2>&1
On Thu, 23 Jan 2003, Andy wrote:
>
> I created a backup script that copies our NT Server data drive to our
> Redhat box running samba. All works fine except my root email account
Do this:
tar > /dev/null 2>&1
That should work.
JaideepDo you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> > ( tar cf - /mnt ) | ( cd /usr/local/samba/lib/back ; tar xvpf - )
> > How do I tell cron NOT to send me a summary? (if that is what it is
> > doing)
>
> Cron will send you output from programs that it runs. Close cout/cerr, or
> redirect output to /dev/null in your script.
That is what I need
On Thu, 23 Jan 2003, Andy wrote:
> ( tar cf - /mnt ) | ( cd /usr/local/samba/lib/back ; tar xvpf - )
> How do I tell cron NOT to send me a summary? (if that is what it is doing)
Cron will send you output from programs that it runs. Close cout/cerr, or
redirect output to /dev/null in your script.
On Tue, 2002-12-10 at 21:11, Jianping Zhu wrote:
> I have redhat 7.1 server.
> Because i have several dictories need to be backup, I want to write a
> script do it automatically say every Satuerday a 2:00am. is there a way
> to do that?
Check this out.
I use this on my machines to back up c
Look into cron. Add a line like the following to /etc/crontab:
00 2 * * 6 root /path/to/my/script.sh
You will need to write a script that executes the backup operation. As
soon as you modify the file, the setting changes are noticed by crond.
Make sure your script is executable (chmod 755 sc
Jianping Zhu said:
> I have redhat 7.1 server.
> Because i have several dictories need to be backup, I want to write a
> script do it automatically say every Satuerday a 2:00am. is there a way
> to do that?
how are you planning to back it up? I mean, some backup to CDR, some backup
to tape, s
thanks.will try that
- Original Message -
From: "Cowles, Steve" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 19, 2002 12:57 PM
Subject: RE: Backup script creating 2 mails
> -Original Message-
> From: Daniel Tan [mailto:danielt
> -Original Message-
> From: Daniel Tan [mailto:danieltan@;shopnsave.com.sg]
> Sent: Friday, October 18, 2002 9:39 PM
> To: Redhat 2
> Subject: Backup script creating 2 mails
>
>
> Hi all,
> i have a backup script that will send me an email
> after backup has finished. But i keep
On Wed, Dec 20, 2000 at 08:30:42AM -0800, Thornton Prime <[EMAIL PROTECTED]> wrote:
| > I would like to write a script for backup purpose. I have a file
| > which contains all the backup files list like,
| > # cat file.lst
| > ./a/foo.c
| > ./b/c/voo.c
| > At all, how can redirect this file list t
thanks
On Wed, 20 Dec 2000, Thornton Prime wrote:
>
> On Wed, 20 Dec 2000, Andrew So Hong-pong wrote:
>
> > All,
> >
> > I would like to write a script for backup purpose. I have a file
> > which contains all the backup files list like,
> >
> > # cat file.lst
> > ./a/foo.c
> > ./b/c/voo.c
> >
On Wed, 20 Dec 2000, Andrew So Hong-pong wrote:
> All,
>
> I would like to write a script for backup purpose. I have a file
> which contains all the backup files list like,
>
> # cat file.lst
> ./a/foo.c
> ./b/c/voo.c
>
> At all, how can redirect this file list to perform the tar command
The t
29 matches
Mail list logo