Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Jon Reynolds
On Thu, 2 Jun 2011 17:28:57 +0100, Chris Rowson wrote: I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. snip I use s3sync [0] to just sync my whole (chosen) directory/directories to an Amazon

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Alan Lord (News)
On 02/06/11 17:28, Chris Rowson wrote: I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. Is there anything wrong with using something simple like this? (except of course for the lack of validation).

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Tony Travis
On 02/06/11 17:28, Chris Rowson wrote: I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. Is there anything wrong with using something simple like this? (except of course for the lack of validation).

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
Thanks so much for all of your suggestions guys. I ended up with something like this which resulted in part from a need to get my backups onto a Windows Server and to get an email when it happens (or if it doesn't). #!/bin/bash BACKUPDIR=/home/USERNAME/backup WHATTOBACKUP=/var/www

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
I promise to stop spamming the list now! Final draft. I know the email component should be put into a function but I'm a bad man and didn't do it! Just added an extra section that checks to make sure that tar didn't throw an error code for some reason when it exited. Chris

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Sean Miller
We always used to do a daily backup, but Sundays we did a weekly one. Daily backups (ie. Mon-Sat) were kept 7 days, Sunday backups were on a 4-week cycle. And, of course, we actually backed up to somewhere else... not to the same system, as your script appears to do. You could make it 8-weekly

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
And, of course, we actually backed up to somewhere else... not to the same system, as your script appears to do. It does. But read the rest of the thread and you'll see why, and what happens next ;-) Chris -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Avi Greenbury
Chris Rowson wrote: Unfortunately I'm backing the Linux box up to a Windows server. This in turn gets backed up by a centralised backup system. I'd be tempted, in that case, to make things simple(r) for yourself if you can and just rsync what would need backing up onto some share on the

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Tony Arnold
Chris, Sorry if this has been mentioned before but have you tried sbackup? Regards, Tony. On 03/06/11 14:49, Chris Rowson wrote: I promise to stop spamming the list now! Final draft. I know the email component should be put into a function but I'm a bad man and didn't do it! Just added

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
Chris, Sorry if this has been mentioned before but have you tried sbackup? Regards, Tony. Hi Tony, That's a GUI tool isn't it? This is to backup a Linux Server up to a Windows Server (only you can't see the Windows Server bits). Chris -- ubuntu-uk@lists.ubuntu.com

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
Chris Rowson wrote: Unfortunately I'm backing the Linux box up to a Windows server. This in turn gets backed up by a centralised backup system. I'd be tempted, in that case, to make things simple(r) for yourself if you can and just rsync what would need backing up onto some share on the

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Avi Greenbury
Chris Rowson wrote: Chris Rowson wrote: You're pretty much right. Centralised backup handles Win Server but I need to backup the data on the Linux box too, hence shifting data. ATM the Win box uses a script to 'pull' archive files from the Linux box using pscp.exe. I looked briefly at rsync

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Chris Rowson
Chris Rowson wrote: You're pretty much right. Centralised backup handles Win Server but I need to backup the data on the Linux box too, hence shifting data. ATM the Win box uses a script to 'pull' archive files from the Linux box using pscp.exe. I looked briefly at rsync but it seemed to

Re: [ubuntu-uk] Simple backup script

2011-06-03 Thread Tony Arnold
Chris, On 03/06/11 18:54, Chris Rowson wrote: Chris, Sorry if this has been mentioned before but have you tried sbackup? Regards, Tony. Hi Tony, That's a GUI tool isn't it? This is to backup a Linux Server up to a Windows Server (only you can't see the Windows Server bits). I

[ubuntu-uk] Simple backup script

2011-06-02 Thread Chris Rowson
I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. Is there anything wrong with using something simple like this? (except of course for the lack of validation). Basically, let's delete anything over 7

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread Simon Greenwood
On 2 June 2011 17:28, Chris Rowson christopherrow...@gmail.com wrote: I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. Is there anything wrong with using something simple like this? (except of

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread bodsda
:28:57 To: British Ubuntu Talkubuntu-uk@lists.ubuntu.com Reply-To: UK Ubuntu Talk ubuntu-uk@lists.ubuntu.com Subject: [ubuntu-uk] Simple backup script I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread Chris Rowson
On Jun 2, 2011 5:50 PM, bod...@googlemail.com wrote: I would say it depends on what you mean by 'wrong' I handle the backups for a local government, so yes, that is wrong, very wrong. I know where you're coming from. I think the list has quite a few public sector members in various

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread Neil Greenwood
On 2 June 2011 18:07, Chris Rowson christopherrow...@gmail.com wrote: On Jun 2, 2011 5:50 PM, bod...@googlemail.com wrote: I would say it depends on what you mean by 'wrong' I handle the backups for a local government, so yes, that is wrong, very wrong. I know where you're coming from. I

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread Chris Rowson
I've started using rsnapshot. It does something similar with the local retention, but each file which is identical (between retained backups) is hard-linked rather than taking multiple disk blocks. Neil. Unfortunately I'm backing the Linux box up to a Windows server. This in turn gets

Re: [ubuntu-uk] Simple backup script

2011-06-02 Thread James Tait
On 02/06/11 17:28, Chris Rowson wrote: I've been tinkering with backups and backup rotation today and I have come across many wierd and wonderful backup scripts of varying complexity. Is there anything wrong with using something simple like this? (except of course for the lack of validation).