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 way to

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

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

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 > >> helpful in solving a problem, but the solutio

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 > >> helpful in solving a problem, but the solutio

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 script, which only offered the advantage of having

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 not found it as necessary

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 it... In brief, I was directing

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 backed up have their ownerships chan

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 don't you use

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 ownerships changed to me, brownh:b

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. > > Here's the old

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

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
On 6/4/07, Wackojacko <[EMAIL PROTECTED]> wrote: 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

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
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 because it

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

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

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
On Sat, Oct 19, 2002 at 02:28:55AM -0700, 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 > make full copies with incremental updates throughout the week. Would be > nice

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 last 7 days -mtime -30 la

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
High, On Sat, 19 Oct 2002, 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 > make full copies with incremental updates throughout the week. Would be > nice to have it report to a