-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
Try running it through dos2unix. It smells a bit like you have
created
it with a Windows machine and it contains wrong line delimiters.
Not quite it, but apparently there was some garbage in there
somewhere. I re-typed it, & it now works.
Thanks,
-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
lto:[EMAIL PROTECTED]
On Behalf Of Steve Buehler
Sent: Friday, March 28, 2003 9:06 AM
To: [EMAIL PROTECTED]
Subject: backup script
RedHat Linux 7.3
I am trying to create a backup script (/bin/sh type) that would read the
directories and create a seperate backup file for each directory. I can
easi
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
RedHat Linux 7.3
I am trying to create a backup script (/bin/sh type) that would read the
directories and create a seperate backup file for each directory. I can
easily get the directories into a text file with "ls -d *". How can I run
through that script one line at a time p
tting it in the crontab means you
only have to type it once, and it will affect ALL output from the script.
> # Run morning backup script at 2 am every morning
> 0 2 * * * /root/backupscript /dev/null 2>&1
You still need to redirect output. You can't skip the > to /dev/null if
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
---
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:
# Run morning backup script at 2 am every morning
0 2 * * * /root/backupscript /dev/null 2>&1
There are
> -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 wo
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.
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
gets a 1.2 MB email sent to it every night. This will hog disk space.
This is the beginning of the email:
Subject: Cron /root/backupscript
Message part
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
Here is the text of the scripts that I use that works pretty well. The backup script
says what to dump. The dodump script determines where it ends up by the BACKUPDIR
variable. I have this set up to a network share that goes to tape later but this
could be anything. This does full on Sunday
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
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?
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.c
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
Hi all,
i have a backup script that will send me an email after backup has
finished. But i keep receiving 2 mails instead of 1. The additional email
contains these..how do i prevent that mail from appearing?
Subject: Cron /root/bakupdaily
Body: tar: Removing leading `/' from member
> -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
> af
Your email to vincent li <[EMAIL PROTECTED]> has been rejected, as this account is
no longer valid. Please update your records to reflect this.
Thanks,
ISC IT Staff
mailto:[EMAIL PROTECTED]
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://lis
On Wed, 6 Mar 2002, vincent li wrote:
> it seems that it's not cron's problem, i check the
> mail message and find the following message:
>
> >From root Thu Mar 7 13:35:01 2002
> Return-Path:
> Received: (from root@localhost)
> by cn.iaspec.com (8.11.6/8.11.6) id
> g275Z1C19040
>
it seems that it's not cron's problem, i check the
mail message and find the following message:
>From root Thu Mar 7 13:35:01 2002
Return-Path:
Received: (from root@localhost)
by cn.iaspec.com (8.11.6/8.11.6) id
g275Z1C19040
for root; Thu, 7 Mar 2002 13:35:01 +0800
Date: Thu, 7
On Wed, 2002-03-06 at 03:07, vincent li wrote:
> hi, folks
>
> i use scp to backup local file to remote machine
> without asking authorization by distributing the
> publica key,i can run it successfully at command
> line,for instance
>
> #/usr/localbin/scp /usr/localfile remotehost:/backup/
>
>
On Wed, Mar 06, 2002 at 01:13:33PM +0100, Rick van der Linde wrote:
> Did you try placing quotes for the command?
>
> For example `/usr/localbin/scp /usr/localfile remotehost:/backup/`
Quotes shouldn't be necessary and may even mess things up. (I checked
my working crontab, and it doesn't use q
>MAILTO=root
>30 23 * * * /usr/localbin/scp /usr/localfile remotehost:/backup/
>
>It should run at 11:30 PM every day and mail root the output. Set it up as
>root with crontab -e. Test crond with something like :
>* * * * * /bin/touch /tmp/crontest
>
>and see if the file is created. If
:
service crond restart
and try again.
steve
-Original Message-
From: Ben Logan [mailto:[EMAIL PROTECTED]]
Sent: 06 March 2002 11:44
To: [EMAIL PROTECTED]
Subject: Re: run backup script by cron question
Hello,
On Wed, Mar 06, 2002 at 01:07:58AM -0800, vincent li wrote:
> hi, folks
>
Hello,
On Wed, Mar 06, 2002 at 01:07:58AM -0800, vincent li wrote:
> hi, folks
>
> i use scp to backup local file to remote machine
> without asking authorization by distributing the
> publica key,i can run it successfully at command
> line,for instance
>
> #/usr/localbin/scp /usr/localfile rem
hi, folks
i use scp to backup local file to remote machine
without asking authorization by distributing the
publica key,i can run it successfully at command
line,for instance
#/usr/localbin/scp /usr/localfile remotehost:/backup/
but when i put it at crontab, it does not work, i do
check the cro
t; > ufsdump (dumpe2fs?)
> > prtvtoc
> > and there are several more that I am not sure about.
> > Thanks,
> > Don Parsons
> >
> >
> > #!/bin/sh
> > # @(#) backup-script 1.2 95/09/15
> > #
> > # si
owing programs:
> ufsdump (dumpe2fs?)
> prtvtoc
> and there are several more that I am not sure about.
> Thanks,
> Don Parsons
>
> ********
> #!/bin/sh
> # @(#) backup-script 1.2 95/09/15
> #
> # simple dump script /usr/bin/ufsscript t
Hello!
I have been using the following script for Solaris and need to find linux
equivalents for the following programs:
ufsdump (dumpe2fs?)
prtvtoc
and there are several more that I am not sure about.
Thanks,
Don Parsons
#!/bin/sh
# @(#) backup-script 1.2
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
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
I know it is a script language, but lack of this experience. Pls help
Re
48 matches
Mail list logo