Re: Automatic Backup Script Help

2012-05-23 Thread Kushal Kumaran
On Wed, May 23, 2012 at 1:04 PM, Craig A. Adams wrote: > Thank you for the feedback Jon. :-) > > > On 23/05/2012 09:12 AM, Jon Dowland wrote: >> >>   { sleep 60; /data/backups/scripts/backup-disk-1.sh }& >> >> But I don't see why you even need the sleep. > > > I agree. I suspect using sleep will m

Re: Automatic Backup Script Help

2012-05-23 Thread Craig A. Adams
Thank you for the feedback Jon. :-) On 23/05/2012 09:12 AM, Jon Dowland wrote: { sleep 60; /data/backups/scripts/backup-disk-1.sh }& But I don't see why you even need the sleep. I agree. I suspect using sleep will merely suspend udev operations as well. should be backticks here so that d

Re: Automatic Backup Script Help

2012-05-23 Thread Jon Dowland
On Wed, May 23, 2012 at 08:30:29AM +0200, Craig A. Adams wrote: > /data/backups/scripts/start-disk-1.sh > #!/bin/bash > echo /data/backups/scripts/backup-disk-1.sh | at now + 1 minute > > Is this the correct way to call the backup script, or is there a better way? It doesn't

Automatic Backup Script Help

2012-05-22 Thread Craig A. Adams
Hi, I am trying to setup a basic backup script for a Debian 6.0.5 server and am wanting to validate the scripts I have so far. Here is the scenario... The server has 2 x 1Tb hard drives in RAID 1 config. A third 1Tb hard drive is used for scheduled rsync snapshots. I also have 5 x USB 3.0

Re: Backup script

2011-06-03 Thread Rob Owens
On Wed, Jun 01, 2011 at 08:29:23PM -0400, mark wrote: > On Wednesday 01 June 2011 10:23:48 am Hugo Vanwoerkom wrote: > > Ralf Mardorf wrote: > > > Hi :) > > > > > > I'm writing a script to backup the 4 Linux installs and the MBRs > > > on my machine. > > > > > > Is there a way to copy all 4 Linux b

Re: Backup script

2011-06-02 Thread Ralf Mardorf
On Thu, 2011-06-02 at 14:23 -0400, shawn wilson wrote: > > On Jun 2, 2011 1:48 PM, "Ralf Mardorf" > wrote: > > > > On Thu, 2011-06-02 at 13:21 -0400, shawn wilson wrote: > > > > > > On Jun 2, 2011 1:06 PM, "Ralf Mardorf" > > > > wrote: > > > > > > > > On Thu, 2011-06-02 at 14:01 +0100, Tom Furie

Re: Backup script

2011-06-02 Thread shawn wilson
On Jun 2, 2011 1:48 PM, "Ralf Mardorf" wrote: > > On Thu, 2011-06-02 at 13:21 -0400, shawn wilson wrote: > > > > On Jun 2, 2011 1:06 PM, "Ralf Mardorf" > > wrote: > > > > > > On Thu, 2011-06-02 at 14:01 +0100, Tom Furie wrote: > > > > On Thu, Jun 02, 2011 at 04:24:52AM +0200, Ralf Mardorf wrote:

Re: Backup script

2011-06-02 Thread Ralf Mardorf
On Thu, 2011-06-02 at 13:21 -0400, shawn wilson wrote: > > On Jun 2, 2011 1:06 PM, "Ralf Mardorf" > wrote: > > > > On Thu, 2011-06-02 at 14:01 +0100, Tom Furie wrote: > > > On Thu, Jun 02, 2011 at 04:24:52AM +0200, Ralf Mardorf wrote: > > > > > > > It takes just some minutes to restore a complete

Re: Backup script

2011-06-02 Thread Hugo Vanwoerkom
Guido Hecken wrote: -Ursprüngliche Nachricht- Von: Ralf Mardorf [mailto:ralf.mard...@alice-dsl.net] Gesendet: Mittwoch, 1. Juni 2011 10:28 An: Debian-User Betreff: Backup script Hi :) I'm writing a script to backup the 4 Linux installs and the MBRs on my machine. Is there a w

Re: Backup script

2011-06-02 Thread shawn wilson
On Jun 2, 2011 1:06 PM, "Ralf Mardorf" wrote: > > On Thu, 2011-06-02 at 14:01 +0100, Tom Furie wrote: > > On Thu, Jun 02, 2011 at 04:24:52AM +0200, Ralf Mardorf wrote: > > > > > It takes just some minutes to restore a complete install from an > > > archive, IMO it makes no sense to make a deafult

Re: Backup script

2011-06-02 Thread Ralf Mardorf
On Thu, 2011-06-02 at 14:01 +0100, Tom Furie wrote: > On Thu, Jun 02, 2011 at 04:24:52AM +0200, Ralf Mardorf wrote: > > > It takes just some minutes to restore a complete install from an > > archive, IMO it makes no sense to make a deafult install and then to > > copy back configs and data and to

Re: Backup script

2011-06-02 Thread Tom Furie
On Thu, Jun 02, 2011 at 04:24:52AM +0200, Ralf Mardorf wrote: > It takes just some minutes to restore a complete install from an > archive, IMO it makes no sense to make a deafult install and then to > copy back configs and data and to install additional stuff. And what > is Fair enough. Whatever

Backup script

2011-06-02 Thread Guido Hecken
> -Ursprüngliche Nachricht- > Von: Ralf Mardorf [mailto:ralf.mard...@alice-dsl.net] > Gesendet: Mittwoch, 1. Juni 2011 10:28 > An: Debian-User > Betreff: Backup script > > Hi :) > > I'm writing a script to backup the 4 Linux installs and the > MBRs on

Re: Backup script

2011-06-02 Thread Ralf Mardorf
On Thu, 2011-06-02 at 01:01 -0400, shawn wilson wrote: > > On Jun 2, 2011 12:30 AM, "Nico Kadel-Garcia" wrote: > > > > On Wed, Jun 1, 2011 at 4:27 AM, Ralf Mardorf > wrote: > > > Hi :) > > > > > > I'm writing a script to backup the 4 Linux installs and the MBRs > on my > > > machine. > > > > > >

Re: Backup script

2011-06-01 Thread shawn wilson
On Jun 2, 2011 12:30 AM, "Nico Kadel-Garcia" wrote: > > On Wed, Jun 1, 2011 at 4:27 AM, Ralf Mardorf wrote: > > Hi :) > > > > I'm writing a script to backup the 4 Linux installs and the MBRs on my > > machine. > > > > Is there a way to copy all 4 Linux by running one of those installs? > > > > Wi

Re: Backup script

2011-06-01 Thread Nico Kadel-Garcia
On Wed, Jun 1, 2011 at 4:27 AM, Ralf Mardorf wrote: > Hi :) > > I'm writing a script to backup the 4 Linux installs and the MBRs on my > machine. > > Is there a way to copy all 4 Linux by running one of those installs? > > With a lack of knowledge I would backup the 3 Linux that aren't running, >

Re: Backup script

2011-06-01 Thread Ralf Mardorf
On Thu, 2011-06-02 at 02:26 +0100, Tom Furie wrote: > On Thu, Jun 02, 2011 at 03:03:18AM +0200, Ralf Mardorf wrote: > > It's also very time consuming to compile all the apps again, that need > > to be compiled, the kernel, jack2 from svn etc.. Just saving the data > > isn't an option. > > So, back

Re: Backup script

2011-06-01 Thread Tom Furie
On Thu, Jun 02, 2011 at 03:03:18AM +0200, Ralf Mardorf wrote: > It's also very time consuming to compile all the apps again, that need > to be compiled, the kernel, jack2 from svn etc.. Just saving the data > isn't an option. So, backup your configs, data, and prebuilt source trees ready for a "su

Re: Backup script

2011-06-01 Thread Ralf Mardorf
On Wed, 2011-06-01 at 20:54 -0400, shawn wilson wrote: > > On Jun 1, 2011 8:29 PM, "mark" wrote: > > > > On Wednesday 01 June 2011 10:23:48 am Hugo Vanwoerkom wrote: > > > Ralf Mardorf wrote: > > > > Hi :) > > > > > > > > I'm writing a script to backup the 4 Linux installs and the MBRs > > > > on

Re: Backup script

2011-06-01 Thread shawn wilson
On Jun 1, 2011 8:29 PM, "mark" wrote: > > On Wednesday 01 June 2011 10:23:48 am Hugo Vanwoerkom wrote: > > Ralf Mardorf wrote: > > > Hi :) > > > > > > I'm writing a script to backup the 4 Linux installs and the MBRs > > > on my machine. > > > > > > Is there a way to copy all 4 Linux by running one

Re: Backup script

2011-06-01 Thread mark
On Wednesday 01 June 2011 10:23:48 am Hugo Vanwoerkom wrote: > Ralf Mardorf wrote: > > Hi :) > > > > I'm writing a script to backup the 4 Linux installs and the MBRs > > on my machine. > > > > Is there a way to copy all 4 Linux by running one of those > > installs? > > > > With a lack of knowledge

Re: Backup script

2011-06-01 Thread David Christensen
On 06/01/2011 01:27 AM, Ralf Mardorf wrote: I'm writing a script to backup the 4 Linux installs and the MBRs on my machine. Is there a way to copy all 4 Linux by running one of those installs? With a lack of knowledge I would backup the 3 Linux that aren't running, by the running Linux and than b

Re: Backup script

2011-06-01 Thread Hugo Vanwoerkom
Ralf Mardorf wrote: Hi :) I'm writing a script to backup the 4 Linux installs and the MBRs on my machine. Is there a way to copy all 4 Linux by running one of those installs? With a lack of knowledge I would backup the 3 Linux that aren't running, by the running Linux and than boot another Lin

Re: Backup script

2011-06-01 Thread James Robertson
> > > > > > # cd /mount_point_linux_root_directory > > # tar czf /path_for_backups/backup_name.tar.gz * > > > > > Backup up your running machine using tar is fine but you should probably exclude some directories. Something like this would do (you may want to remove some of the excludes like logs f

Re: Backup script

2011-06-01 Thread Camaleón
On Wed, 01 Jun 2011 10:27:38 +0200, Ralf Mardorf wrote: > I'm writing a script to backup the 4 Linux installs and the MBRs on my > machine. > > Is there a way to copy all 4 Linux by running one of those installs? > > With a lack of knowledge I would backup the 3 Linux that aren't running, > by t

Re: Backup script

2011-06-01 Thread Ralf Mardorf
On Wed, 2011-06-01 at 12:26 +0200, Ralf Mardorf wrote: > On Wed, 2011-06-01 at 20:12 +1000, James Robertson wrote: > > > > Hi :) > > > > I'm writing a script to backup the 4 Linux installs and the > > MBRs on my > > machine. > > > > Is ther

Re: Backup script

2011-06-01 Thread Ralf Mardorf
On Wed, 2011-06-01 at 20:12 +1000, James Robertson wrote: > > Hi :) > > I'm writing a script to backup the 4 Linux installs and the > MBRs on my > machine. > > Is there a way to copy all 4 Linux by running one of those > installs? >

Re: Backup script

2011-06-01 Thread James Robertson
> Hi :) > > I'm writing a script to backup the 4 Linux installs and the MBRs on my > machine. > > Is there a way to copy all 4 Linux by running one of those installs? > > With a lack of knowledge I would backup the 3 Linux that aren't running, > by the running Linux and than boot another Linux inst

Backup script

2011-06-01 Thread Ralf Mardorf
Hi :) I'm writing a script to backup the 4 Linux installs and the MBRs on my machine. Is there a way to copy all 4 Linux by running one of those installs? With a lack of knowledge I would backup the 3 Linux that aren't running, by the running Linux and than boot another Linux install, to backup

Re: OT: Output from date command - my little backup script

2011-01-16 Thread Adrian Levi
On 16 January 2011 17:34, Bob Proulx wrote: > Adrian Levi wrote: >>     if [ $backuplevel -eq 0] > > You are missing a space after the 0 and before the ] and I am hoping > that is simply an email glitch.  But you must have a space there. > >    if [ $backuplevel -eq 0 ] Thanks Bob, That fixed it

Re: OT: Output from date command - my little backup script

2011-01-15 Thread Bob Proulx
Adrian Levi wrote: > Is the output from the date command a string or integer wrt date +%w? The date command only produces string output. %w produces one of the characters 0, 1, 2, 3, 4, 5, 6. > I'm trying to test a condition in my backup script where i want to > match on d

OT: Output from date command - my little backup script

2011-01-15 Thread Adrian Levi
Is the output from the date command a string or integer wrt date +%w? I'm trying to test a condition in my backup script where i want to match on day of week = 0 The program flow I am trying to achieve is" If the file exists and the day of the week is 0 then remove the file and set

Re: backup script changes permissions

2008-04-07 Thread Osamu Aoki
On Sun, Apr 06, 2008 at 10:42:19AM -0400, Haines Brown wrote: > Kevin Mark <[EMAIL PROTECTED]> writes: > > > On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: > >> I'be brought up my backup script for discussion before, and folks where > >&

Re: backup script changes permissions

2008-04-07 Thread Osamu Aoki
On Sun, Apr 06, 2008 at 11:00:53AM -0400, Haines Brown wrote: > Osamu Aoki <[EMAIL PROTECTED]> writes: > > > On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: > >> I'be brought up my backup script for discussion before, and folks where > >&

Re: backup script changes permissions

2008-04-06 Thread Owen Townend
On 07/04/2008, Haines Brown <[EMAIL PROTECTED]> wrote: > > Noah Slater <[EMAIL PROTECTED]> writes: > > > Why don't you use a prebuilt package such as backup2l? > > > Noah, I might just do that. I've spent a lot of time struggling with the > backup s

Re: backup script changes permissions

2008-04-06 Thread Haines Brown
Noah Slater <[EMAIL PROTECTED]> writes: > Why don't you use a prebuilt package such as backup2l? Noah, I might just do that. I've spent a lot of time struggling with the backup script, which only offered the advantage of having unarchived files, but in recent years I've n

Re: backup script changes permissions

2008-04-06 Thread Haines Brown
Osamu Aoki <[EMAIL PROTECTED]> writes: > On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: >> I'be brought up my backup script for discussion before, and folks where >> helpful in solving a problem, but the solution created another. > > I did not read

Re: backup script changes permissions

2008-04-06 Thread Haines Brown
Kevin Mark <[EMAIL PROTECTED]> writes: > On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: >> I'be brought up my backup script for discussion before, and folks where >> helpful in solving a problem, but the solution created another. Now all >> files

Re: backup script changes permissions

2008-04-06 Thread Noah Slater
On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: > I'be brought up my backup script for discussion before, and folks where > helpful in solving a problem, but the solution created another. Now all > files backed up have their ownerships changed to me, brownh:brownh. Why

Re: backup script changes permissions

2008-04-06 Thread Osamu Aoki
On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: > I'be brought up my backup script for discussion before, and folks where > helpful in solving a problem, but the solution created another. I did not read it... > Now all > files backed up have their ownersh

Re: backup script changes permissions

2008-04-06 Thread Kevin Mark
On Sun, Apr 06, 2008 at 07:28:51AM -0400, Haines Brown wrote: > I'be brought up my backup script for discussion before, and folks where > helpful in solving a problem, but the solution created another. Now all > files backed up have their ownerships changed to me, brownh:brownh. &

backup script changes permissions

2008-04-06 Thread Haines Brown
I'be brought up my backup script for discussion before, and folks where helpful in solving a problem, but the solution created another. Now all files backed up have their ownerships changed to me, brownh:brownh. Here's the old script, which had the problem that output was going to a ma

Re: backup script partly fails when in cron.weekly

2007-12-12 Thread Haines Brown
Andrew Sackville-West <[EMAIL PROTECTED]> writes: > On Tue, Dec 11, 2007 at 08:24:07AM -0500, Haines Brown wrote: > > Benjamin Schmidt <[EMAIL PROTECTED]> writes: > > > > > But maybe you should not use this (in my opinion) unusual command "find > > > / -print ...". Instead use tar, like: > > > >

Re: backup script partly fails when in cron.weekly

2007-12-11 Thread Andrew Sackville-West
On Tue, Dec 11, 2007 at 08:24:07AM -0500, Haines Brown wrote: > Benjamin Schmidt <[EMAIL PROTECTED]> writes: > > > But maybe you should not use this (in my opinion) unusual command "find > > / -print ...". Instead use tar, like: > > > > tar -zcvf /media/mirror/`date +%F`.tar.gz -C / --exclude=/me

Re: backup script partly fails when in cron.weekly

2007-12-11 Thread Haines Brown
Benjamin Schmidt <[EMAIL PROTECTED]> writes: > But maybe you should not use this (in my opinion) unusual command "find > / -print ...". Instead use tar, like: > > tar -zcvf /media/mirror/`date +%F`.tar.gz -C / --exclude=/media/* > --exclude=/proc/* --exclude=/sys/* --exclude=/mnt/* Benjamin, tha

Re: backup script partly fails when in cron.weekly

2007-12-10 Thread Benjamin Schmidt
Ok, first: Why it doesn't work I simply don't know. You should test if this is a problem with find, or the egrep command, cpio or cat by making verbose output into a own log file. But maybe you should not use this (in my opinion) unusual command "find / -print ...". Instead use tar, like: tar -z

backup script partly fails when in cron.weekly

2007-12-09 Thread Haines Brown
I asked this question some time ago. I've a script in /etc/cron.weekly named "backup" (rwxr-xr-x root/root) that looks like this: #!/bin/sh mount /media/mirror dirName=`date +%F` mkdir /media/mirror/"$dirName" find / -print | egrep -v "^/media|^/proc|^/sys|^/mnt" | cpio -pdmuv \ /media/mirror/"$di

Re: backup script modification help

2007-06-05 Thread Nate Duehr
On Jun 4, 2007, at 11:22 AM, Wei Chen wrote: I recommend rdiff-backup. It does incremental backups. It is easy to use and has powerful statistics displaying functions. I personally use it. It is in the repository so easy to install. There is detailed document and sample commands on its We

Re: backup script modification help

2007-06-04 Thread Wei Chen
it avoids /proc, but not sure how. Help would be appreciated. > Try backup2l. Very simple backup script that automates this for you and makes incremental daily backups. I recommend rdiff-backup. It does incremental backups. It is easy to use and has powerful statistics displaying function

Re: backup script modification help

2007-06-04 Thread Haines Brown
Mike et al, Thanks for the fix and the suggestions. I understood the script just to the extent I could mess it up ;-( -- Haines Brown, KB1GRM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: backup script modification help

2007-06-04 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Douglas Allan Tutty wrote: > On Mon, Jun 04, 2007 at 07:15:49AM -0400, Haines Brown wrote: >> I use cron to do a periodic full backup to an external USB drive that >> I've named "mirror". The script used is: >> >> find / -print | egrep -v "^/media/mirr

Re: backup script modification help

2007-06-04 Thread Michael G. Hansen
Haines Brown wrote: > I use cron to do a periodic full backup to an external USB drive that > I've named "mirror". The script used is: > > find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv > /media/mirror/"$1" 2>&1 | cat -vt You could try "find -xdev" which prevents find from entering

Re: backup script modification help

2007-06-04 Thread Douglas Allan Tutty
On Mon, Jun 04, 2007 at 07:15:49AM -0400, Haines Brown wrote: > I use cron to do a periodic full backup to an external USB drive that > I've named "mirror". The script used is: > > find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv > /media/mirror/"$1" 2>&1 | cat -vt > > Since instal

Re: backup script modification help

2007-06-04 Thread Roby
Haines Brown wrote: > I use cron to do a periodic full backup to an external USB drive that > I've named "mirror". The script used is: > > find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv > /media/mirror/"$1" 2>&1 | cat -vt > > Since installing Etch, this script has not worked well

Re: backup script modification help

2007-06-04 Thread Wackojacko
h, this script has not worked well because it does not like to backup the /sys directory. Actually, backing up /sys dangerous). So I'd like to modify the script to block cpio from doing /sys as it avoids /proc, but not sure how. Help would be appreciated. Try backup2l. Very simple backu

Re: backup script modification help

2007-06-04 Thread Atis
On 04 Jun 2007 07:15:49 -0400, Haines Brown <[EMAIL PROTECTED]> wrote: I use cron to do a periodic full backup to an external USB drive that I've named "mirror". The script used is: find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv /media/mirror/"$1" 2>&1 | cat -vt Since installing

backup script modification help

2007-06-04 Thread Haines Brown
I use cron to do a periodic full backup to an external USB drive that I've named "mirror". The script used is: find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv /media/mirror/"$1" 2>&1 | cat -vt Since installing Etch, this script has not worked well because it does not like to backu

Re: backup script and python

2007-05-05 Thread Henrique G. Abreu
Thanks Wei Chen, it worked now! I was really environment variables problem. Included in crontab, just as shown in man 5 crontab thanks everybody. On 5/5/07, Andrew Sackville-West <[EMAIL PROTECTED]> wrote: On Sat, May 05, 2007 at 07:22:11AM -0300, Henrique G. Abreu wrote: > runing on cron, I ca

Re: backup script and python

2007-05-05 Thread Andrew Sackville-West
On Sat, May 05, 2007 at 07:22:11AM -0300, Henrique G. Abreu wrote: > runing on cron, I can't see any error message. All I got is the log I > generate on the script: > >BEGINNING DAILY BACKUP ZENOSS > >BACKUP ZENOSS WITH TROUBLE - ERROR! well, this error message doesn't tell us anything. maybe you

Re: backup script and python

2007-05-05 Thread Wei Chen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Henrique G. Abreu wrote: > runing on cron, I can't see any error message. All I got is the log I > generate on the script: >> BEGINNING DAILY BACKUP ZENOSS >> BACKUP ZENOSS WITH TROUBLE - ERROR! > > the entry in my cron is: > 35 13 * * * root /usr/loc

Re: backup script and python

2007-05-05 Thread Henrique G. Abreu
runing on cron, I can't see any error message. All I got is the log I generate on the script: BEGINNING DAILY BACKUP ZENOSS BACKUP ZENOSS WITH TROUBLE - ERROR! the entry in my cron is: 35 13 * * * root /usr/local/zenoss/scripts/backup_zenoss.sh I change hour and minute every test, to few minute

Re: backup script and python

2007-05-04 Thread Wei Chen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Sackville-West wrote: > On Fri, May 04, 2007 at 01:42:03PM -0300, Henrique G. Abreu wrote: >> hi, I've made a very simple script to backup zope files, it work just >> fine when I launch it from shell, then I inserted it in cron so it >> runs aut

Re: backup script and python

2007-05-04 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/04/07 11:42, Henrique G. Abreu wrote: > hi, I've made a very simple script to backup zope files, it work just > fine when I launch it from shell, then I inserted it in cron so it > runs automatically. But runned by cron, it only returns error. Be

Re: backup script and python

2007-05-04 Thread Andrew Sackville-West
On Fri, May 04, 2007 at 01:42:03PM -0300, Henrique G. Abreu wrote: > hi, I've made a very simple script to backup zope files, it work just > fine when I launch it from shell, then I inserted it in cron so it > runs automatically. But runned by cron, it only returns error. Bellow > my script, and th

backup script and python

2007-05-04 Thread Henrique G. Abreu
hi, I've made a very simple script to backup zope files, it work just fine when I launch it from shell, then I inserted it in cron so it runs automatically. But runned by cron, it only returns error. Bellow my script, and the python script that it's calls. backup_zenoss.sh #!/bin/bash export DAT

Re: wtmp backup script - howto change "how often"

2004-01-17 Thread Ryan Mackay
Sometime near Sat, Jan 17, 2004 at 11:14:22PM +0100, Peto V. wrote: > Hello. > I'm using unstable & I don't like "settings" of logrotate-I mean "backing > up of /var/log". > For example: > I wanna wtmp to be backed up 1/year (or 1/month), but (!) I wanna have > only_one wtmp for all year (eg 2004).

wtmp backup script - howto change "how often"

2004-01-17 Thread Peto V.
Hello. I'm using unstable & I don't like "settings" of logrotate-I mean "backing up of /var/log". For example: I wanna wtmp to be backed up 1/year (or 1/month), but (!) I wanna have only_one wtmp for all year (eg 2004). I think, its simple and i have to just change something (simple) in logrotate s

Re: simple backup script

2003-09-04 Thread Karsten M. Self
on Tue, Sep 02, 2003 at 01:15:10AM +0200, Marcus Schopen ([EMAIL PROTECTED]) wrote: > Hi, > > I'm looking for a simple backup script, which uses e.g. dd and > additionally does some error handling and mail notification. I use > amanda for my daily and weekly backups, but to

Re: simple backup script

2003-09-02 Thread Jacob Anawalt
Kirk Strauser wrote: At 2003-09-02T04:58:31Z, Jacob Anawalt <[EMAIL PROTECTED]> writes: I guess if your 2nd hard disk is the same size or larger than the first and you want an exact copy of everything then dd might be the way to do it. Umm, no. dd gives consistent backups *only if* the d

Re: simple backup script

2003-09-02 Thread Peter Whysall
on Tue, Sep 02, 2003, Yves Goergen ([EMAIL PROTECTED]) wrote: > Why don't you just use RAID to mirror your harddisk? > > Saves you daily backups and gives you instant backup on failure. And IIRC > your system can keep on running 'on one tyre'. Mirrored RAID is not a backup solution. A backup is

Re: simple backup script

2003-09-02 Thread Kirk Strauser
At 2003-09-02T04:58:31Z, Jacob Anawalt <[EMAIL PROTECTED]> writes: > I guess if your 2nd hard disk is the same size or larger than the first > and you want an exact copy of everything then dd might be the way to do > it. Umm, no. dd gives consistent backups *only if* the drive being copied not m

Re: simple backup script - tar

2003-09-02 Thread Alvin Oga
On Tue, 2 Sep 2003, Marcus Schopen wrote: > > > Fault tollerance and data backups are not the same thing, they are just > > different components of a data protection policy. yup .. > > My advice would be (as a minumum) to take a full backup on Monday night and > > incrementals or differential

Re: simple backup script - options

2003-09-02 Thread Alvin Oga
On Tue, 2 Sep 2003, Marcus Schopen wrote: > > > > Why don't you just use RAID to mirror your harddisk? - dd is NOT backup ... its an easy way to get data corruptions when disk-A has badblocks that are different that the badblocks on target disk-B - luckily, badblocks are rare and

Re: simple backup script

2003-09-02 Thread Jacob Anawalt
Jacob Anawalt wrote: [...snip...] if($base eq '/home' and $ar eq 'data') { #Special case for the /home/data archive, clean out old files `find /home/data/mail/ -ctime +1 -exec rm {} \\;`; `find /home/data/log/ -ctime +1 -exec rm {} \\;`; `find /home/data/ -ct

Re: simple backup script

2003-09-02 Thread Jacob Anawalt
I've read the other posts, but am starting back with your origional to keep your full questions. Marcus Schopen wrote: Hi, I'm looking for a simple backup script, which uses e.g. dd and additionally does some error handling and mail notification. I use amanda for my daily and week

Re: simple backup script

2003-09-02 Thread Jason Chambers
On Tue, Sep 02, 2003 at 03:43:22AM +0200, Marcus Schopen wrote: > Joyce, Matthew wrote: > >Fault tollerance and data backups are not the same thing, they are just > >different components of a data protection policy. > > > >My advice would be (as a minumum) to take a full backup on Monday night and

RE: simple backup script

2003-09-02 Thread Joyce, Matthew
> -Original Message- > From: Marcus Schopen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 September 2003 11:59 AM > To: [EMAIL PROTECTED] > Subject: Re: simple backup script > > > Joyce, Matthew wrote: > [...] > > RAID only provides resilience against

Re: simple backup script

2003-09-02 Thread Marc Wilson
On Tue, Sep 02, 2003 at 11:24:20AM +1000, Joyce, Matthew wrote: > RAID only provides resilience against hardware failures, it does not protect > anyone from user errors or mishaps which occurred yesterday, or last week, > or last month. It also doesn't protect you against the computer being struck

Re: simple backup script

2003-09-02 Thread Marcus Schopen
Joyce, Matthew wrote: [...] RAID only provides resilience against hardware failures, it does not protect anyone from user errors or mishaps which occurred yesterday, or last week, or last month. right!!! Fault tollerance and data backups are not the same thing, they are just different components o

RE: simple backup script

2003-09-02 Thread Joyce, Matthew
> -Original Message- > From: Yves Goergen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 September 2003 9:43 AM > To: [EMAIL PROTECTED] > Subject: Re: simple backup script > > > On Tuesday, September 02, 2003 1:15 AM CET, Marcus Schopen wrote: > > Hi, &g

Re: simple backup script

2003-09-02 Thread Arnt Karlsen
On Tue, 2 Sep 2003 01:42:25 +0200, "Yves Goergen" <[EMAIL PROTECTED]> wrote in message <[EMAIL PROTECTED]>: > On Tuesday, September 02, 2003 1:15 AM CET, Marcus Schopen wrote: > > Hi, > > > > I'm looking for a simple backup script, which u

Re: simple backup script

2003-09-02 Thread Marcus Schopen
Yves Goergen wrote: On Tuesday, September 02, 2003 1:15 AM CET, Marcus Schopen wrote: Hi, I'm looking for a simple backup script, which uses e.g. dd and additionally does some error handling and mail notification. I use amanda for my daily and weekly backups, but to feel more secu

Re: simple backup script

2003-09-01 Thread Yves Goergen
On Tuesday, September 02, 2003 1:15 AM CET, Marcus Schopen wrote: > Hi, > > I'm looking for a simple backup script, which uses e.g. dd and > additionally does some error handling and mail notification. I use > amanda for my daily and weekly backups, but to feel more secure, I

simple backup script

2003-09-01 Thread Marcus Schopen
Hi, I'm looking for a simple backup script, which uses e.g. dd and additionally does some error handling and mail notification. I use amanda for my daily and weekly backups, but to feel more secure, I installed a second harddrive in my server today. Now I'm looking for a nice

Re: Backup Script

2002-10-22 Thread Karsten M. Self
on Mon, Oct 21, 2002, Auke Jilderda ([EMAIL PROTECTED]) wrote: > On Sun, Oct 20, 2002 at 12:19:11PM -0700, Karsten M. Self wrote: > > > > Read the following page, then modify the associated script to your > > system. It's geared toward tape. For drive-to-drive, I'd suggest rsync > > rather than

Re: Backup Script - tar vs rsync

2002-10-22 Thread Alvin Oga
hi ya alan one day... i'll go play with --backup option to rsync - another to add to the todo list from when i was using rsync, i think the default is NOT to do a delete ... that if its deleted from the master, that the rsync target does NOT delete it too rsync --delete will del

Re: Backup Script - tar vs rsync

2002-10-21 Thread Alan Chandler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 22 October 2002 3:12 am, Alvin Oga wrote: > rsync .> possible bad stuff > - if the master erased foo.txt, the backup will also be erased Not if you use the --backup --backup-dir options. In fact I use these to create an incre

Re: Backup Script - tar vs rsync

2002-10-21 Thread Alvin Oga
On Mon, 21 Oct 2002, Auke Jilderda wrote: > On Sun, Oct 20, 2002 at 12:19:11PM -0700, Karsten M. Self wrote: > > > > Read the following page, then modify the associated script to your > > system. It's geared toward tape. For drive-to-drive, I'd suggest rsync > > rather than tar. > Why? that

Re: Backup Script

2002-10-21 Thread Auke Jilderda
On Sun, Oct 20, 2002 at 12:19:11PM -0700, Karsten M. Self wrote: > > Read the following page, then modify the associated script to your > system. It's geared toward tape. For drive-to-drive, I'd suggest rsync > rather than tar. Why? Auke -- PGP: 0x4A34DD6D, http://bunny.sourceforge.net/ m

Re: Backup Script

2002-10-20 Thread Kevin Coyner
e > nice to have it report to a file too. I have messed around with using > tar, but don't know enough to make a nice backup script yet, maybe > someone already has one made up they could hand out. Don't want an > excessive script, just something that gets to the

Re: Backup Script

2002-10-19 Thread Alvin Oga
hi ya du - when making backups... you'd probably want month/date as part of your backups ( assuming bash backup script ) date '+%Y%m%d' --> 20021019 date '+%Y.%m.%d'--> 2002.10.19 - for tar stuff -mtime -7

Re: Backup Script

2002-10-19 Thread Alan Chandler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 19 October 2002 10:28 am, Debian User wrote: > Would anyone happen to know of a ready made backup (tar) script for a > debian box, something that I could tell to backup to another drive, and See my reply to a thread that starts "Backing-up

Re: Backup Script

2002-10-19 Thread Sebastiaan
report to a file too. I have messed around with using > tar, but don't know enough to make a nice backup script yet, maybe > someone already has one made up they could hand out. Don't want an > excessive script, just something that gets to the point. > What about a cro

Backup Script

2002-10-19 Thread Debian User
don't know enough to make a nice backup script yet, maybe someone already has one made up they could hand out. Don't want an excessive script, just something that gets to the point. Thanks a bunch du -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubs

Re: syntax error in backup script

2001-05-08 Thread Jason Pepas
: "Morgan Terry" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 08, 2001 7:11 PM Subject: Re: syntax error in backup script > Jason Pepas wrote: > > > > i am brewing up a backup script, but i am running into an error which > > has me baffled. > > > > i try to

Re: syntax error in backup script

2001-05-08 Thread Morgan Terry
Jason Pepas wrote: > > i am brewing up a backup script, but i am running into an error which > has me baffled. > > i try to run the script and get a syntax error which look something like > this: > > syntax error near unexpected token 'elif' > > this i

Re: syntax error in backup script

2001-05-08 Thread Jason Pepas
ot; Sent: Tuesday, May 08, 2001 8:56 AM Subject: Re: syntax error in backup script > Quoting Jason Pepas ([EMAIL PROTECTED]): > > > syntax error near unexpected token 'elif' > > > > this is the line in question: > > > > elif [ ! -f "/backup/cur

Re: syntax error in backup script

2001-05-08 Thread David Wright
Quoting Jason Pepas ([EMAIL PROTECTED]): > syntax error near unexpected token 'elif' > > this is the line in question: > > elif [ ! -f "/backup/current/*fullbackup.tar.gz" ] elif needs "then" just like if does. Cheers, -- Email: [EMAIL PROTECTED] Tel: +44 1908 653 739 Fax: +44 1908 655 1

syntax error in backup script

2001-05-06 Thread Jason Pepas
i am brewing up a backup script, but i am running into an error which has me baffled. i try to run the script and get a syntax error which look something like this: syntax error near unexpected token 'elif' this is the line in question: elif [ ! -f "/backup/current/*fu

Re: Need help/feedback on backup script

2000-10-29 Thread Krzys Majewski
-ne 0 ]; then printf "Backup failed for disk ${DISK}. Try again or type 'skip' to \n" printf "skip to the next disk.\n" read ANSWER if [ "${ANSWER}" = "skip" ]; then break fi

  1   2   >