I have the following bash script and it fails at line 14 and 15
(7zparameters= and 7zfilename=) I have tried everything i can think of
to get it to work, the answer has to be simple but i can't figure it.
This is going to be my new backup script, based on an earlier version
that is very similar in
On 14 January 2011 19:46, Javier Barroso wrote:
> variable names can't start with a number, I guess this is the fail.
That was one, In all the material I read i didn't pick that one up.
--
24x7x365 != 24x7x52 Stupid or bad maths?
hm. I've lost a machine.. literally _lost_. it responds to
ping,
I have (hopefully) taken on everybody's suggestions, Here is the
current script :)
#!/bin/sh
# Variables:
# Determine backup level
incrementalfile="/srv/tar_incremental_file"
if [ -f $incrementalfile ]
then
backuplevel="date +%w"
else
backuplevel="0"
rm $incrementalfile > /dev/null 2>&1
fi
zpa
On 14 January 2011 20:32, Jochen Schulz wrote:
> I don't want to keep you from learning shell scripting, but I generally
> advise against scripting your own backup solution. From my experience
> the result is error prone, tends to attract feature creep and is hard to
> deploy to new environments.
I know where the error lies but not how to fix it.
zparameters="a -mhe=on -pd1ckhead -t7z -m0=lzma -mx=9 -mfb=64 -md=32m
-ms=on -si"
zfilename="Daily Backup - $(date +"%a %h %H%M %d-%m-%Y").$backuplevel.tar.7z"
When these two expand here:
tar $tarparameters $backuppath | 7z $zparameters $zfilena
On 14 January 2011 21:51, Mart Frauenlob wrote:
> in debian lenny (and previous releases) the default shell aka sh is bash.
> the file /bin/sh is a symbolic link to /bin/bash.
> however in squeeze afaik the default shell is dash.
> so your script starting with the shebang #!/bin/sh will not be ru
On 14 January 2011 22:44, Mart Frauenlob wrote:
!
> see also:
> http://en.wikipedia.org/wiki/Unix_shell
> http://en.wikipedia.org/wiki/Comparison_of_command_shells
Thanks for the homework ;-)
It works now BTW...
Adrian
--
24x7x365 != 24x7x52 Stupid or bad maths?
hm. I've lost a machine.. l
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 the day of the
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 ]
It seems that users other than me are not able to login to the server.
I use key nased authentication via putty and from other debian boxes
fine but other users from putty (haven't tried other users from linux)
fail with "No more authentication methods available".
adrian@jupiter:~$ ssh -v localhos
On 19 January 2011 02:37, Rob Owens wrote:
> Any time I've ever had trouble with key based authentication, it was
> because of improper permissions on my .ssh folder. It should be set:
>
> chmod 700 ~/.ssh
>
> I'd double-check that before going any further.
I checked that but didn't spot anythin
On 19 January 2011 05:06, Rob Owens wrote:
> That is the default location for authorized_keys, but it can be changed
> in sshd_config with the AuthorizedKeysFile parameter. Better check and
> make sure somebody didn't alter it from the default.
'Somebody' ~me? :)
This exact config file works pe
On 19 January 2011 07:35, Rob Owens wrote:
> I was going to tell you that .ssh should not be world readable, but I
> just tested it and it works fine like that. (I guess that changed
> sometime since I first set up ssh on my machine).
>
> Can you post the authorized_keys file? Remember that thos
On 4 February 2011 22:42, Lubos Rendek wrote:
> Hi Andrew,
>
> I'm on ADSL2. I had constant speed for years and it was always around
> 6 - 8 Mbps. Suddenly it dropped to 0.3 - 4 Mbps but on average I have
> 0.9. As you also mentioned I too believe that the weather is to be
> blamed.
>
> My Telstra
On 6 February 2011 08:02, Lubos Rendek wrote:
> Hi Adrian,
> Do I have another choice. I mean if lines belong to telstra it sounds
> logical that anywhere I got I might have the same problem?!?
>
> Download test from TPG:
>
> 2011-02-06 08:36:43 (149 KB/s) - `test3.iso' saved [52328448/52328448]
On 8 February 2011 15:53, T o n g wrote:
> >From http://www.acme.com/software/thttpd/thttpd_man.html
> But this really looks Greek to me.
I have to ask, why you can't or don't want to use Apache web server?
It supports Virtual Hosts pretty much out of the box on Debian with a
minimum of configu
I use one called rtorrentquemanager.py
I am running it by 'nohup ./rtorrentquemanager.py &'
works pretty well for me.
Adrian
On 12 February 2011 22:20, Nikolas Slivka wrote:
> Hello!
>
> rTorrent was possible (possibly with external script) configure uTorrent-like
> queue? As an example: 10 pie
On 16 February 2011 00:22, Erwan David wrote:
> And now are fears for Qt...
Qt has nothing to do with Oracle. Qt is Nokia previously Trolltech.
Qt is LGPL and proprietory for commercial use.
Adrian
--
24x7x365 != 24x7x52 Stupid or bad maths?
hm. I've lost a machine.. literally _lost_. it res
On 16 February 2011 02:47, Jochen Schulz wrote:
> I would be surprised to find something like this. The fork has purely
> political reasons and as it is still quite young, it shouldn't have
> deviated from OOo by much until now.
LibreOffice includes the patchset that was GO-OO that neither Sun o
On 21 February 2011 06:02, Elmer E. Dow wrote:
> Greetings:
> 300 Mhz processor
> boot manager on 3.5-inch diskette so it can boot from diskette, CD or hard
> drive
> ethernet jack on motherboard
> 5 pci slots
> 4 isa slots
> (I have a pci nic and 2 isa nics on hand, plus there's that built-in
This motherboard used to work under a previous install of Debian, I
Updated to Squeeze through a fresh install (hard drive replacement).
Ever since I have been unable to get the sound to work.
With the speakers plugged in to the speaker port I get random pops
coming from the speakers, Clicking on
> Are you sure the output jack is in the right socket? These multi-input/
> ouput audio cards are going to get us crazy :-)
I know, most of us only have 2 ears...
(Yes it's in the right socket although i try the other non mic ones as well).
> I would start for the easiest thing, that is, edit "/e
/etc/cron.weekly/man-db:
warning, in file '/var/lib/dpkg/available' near line 7270 package 'virtualbox':
error in Version string '1.6.6-35336_Debian_lenny': invalid character
in revision number
I have tried removing the available file in the hope that it would be
regenerated. Virtualbox was added
> On Wed 29 Jun 2011 at 15:23:11 +1000, Adrian Levi wrote:
> 'apt-get update' regenerates it. 'dpkg --clear-avail' would have cleared
> it.
I'm pretty sure I tried removing the file and did an update, That was
the first thing I thought of but for whatever reason
My home server has been experiencing instability issues running Debian stable.
My issue is I have no sound output and overnight the computer will
hard lock-up so that the num-lock light won't even toggle.
I updated to 2.6.38 thinking it might be a kernel compatibility issue
but the problem remains
On 3 July 2011 18:56, Nicolas Bercher wrote:
Hi Nicolas,
> So, before upgrading the kernel to 2.6.38, where you using the standard
> stable Debian kernel (2.6.32)? If not (but seems yes), maybe downgrading
> the kernel back to the stable one is a good thing to test.
The problem was also in 2.6
On 3 July 2011 21:27, lee wrote:
> You need to figure out what happens to trigger the freezing. Are there
> any entries in syslog that might indicate something? There's cron
> scripts running over night ... Perhaps the easiest way to approach this
> is setting the system clock 12 hours or so ah
On 3 July 2011 17:43, Adrian Levi wrote:
> My home server has been experiencing instability issues running Debian stable.
Ha, I turned off kdm and left the computer sitting in vt1. I got the following:
(Hand typed excuse any typo's)
gemini login: [24573.123365] general protection fau
On 5 July 2011 21:08, Selim T. Erdogan wrote:
> Just a thought: have you tried disabling setiathome? (And also, did
> you have the same setiathome version running on the Ubuntu that didn't
> freeze?)
Seti is a recent addition to that machine. It was locking up before I
installed it.
Adrian
--
On 6 July 2011 08:27, William Hopkins wrote:
>
> I understand your logic but the log says setiathome was the process that
> ultimately triggered the crash. Try disabling it and doing the vt1 trick again
> (also look into the liveCD log-inspection suggestion, then you can pastebinit
> and we can re
On 9 July 2011 16:51, Adrian Levi wrote:
> Ok, I've had some time to sit down with this thing and check it out further.
> Found this on the screen after stopping boinc-client. I'm going to
Before I could use the machine this afternoon I had to restart it, It
responded to SysRQ
201 - 231 of 231 matches
Mail list logo