Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set-up Deja Dup to take backup over a ssh connection on the LAN. At times when the link is down, Deja Dup pops out a box 'No route to host'.

Is there a way to avoid this? Like a -quiet switch?? Or at least redirect the output to some log-file?

share|improve this question

2 Answers 2

No, there is no way to tell deja-dup to not display errors. But modern versions of deja-dup (Ubuntu 12.04 or above) should not start a scheduled backup if it can't resolve the hostname.

share|improve this answer

You can redirect standard output this way:

<command> > <file>

To redirect standard error, use this:

<command> 2> <file>

To redirect both, use this:

<command> > <file> 2> <file>

If you don't want to actually save the file, you can redirect to /dev/null. Anything written there will simply disappear.

share|improve this answer
    
This is too general. My question was specifically was about Deja Dup -- the backup utility with a GUI. –  deshmukh Oct 5 '12 at 7:20
    
So how about replacing <command> with deja-dup? –  Kalle Elmér Oct 5 '12 at 9:49
    
Then I will need to launch my command and not Deja Dup. Plus, I do not know if the No route is the error of Deja Dup. –  deshmukh Oct 9 '12 at 8:51
    
I don't get it. If you type deja-dup > /dev/null, doesn't that start Deja Dup? –  Kalle Elmér Oct 10 '12 at 12:29
    
It might. But that is not how it operates. Deja Dup is kind of always on. It backs up at a particular schedule set up in the application itself –  deshmukh Oct 11 '12 at 6:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.