Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-15-2010, 02:28 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2009
Location: Baltimore MD
Distribution: Ubuntu 10.04
Posts: 5
Rep:
|
(ns)sbackup.conf file meanings
Using NSsbackup on Ubuntu 10.04 desktop. Generally all is successful - except for two things.
First: If my USB WD Passport destination drive is not awake at the time the backup is started, the backup fails. But if I run ls -al on the drive, that wakes it up enough to take the backup. How to deal with this problem?
Second, I have a question on the meanings of one of the commands: "format". In some examples I see "format = none", in others "format=1". What do these mean? Is this related to what type of compression might be being used after the tarball is created? Compression type (by that name) is not mentioned in the /etc/nssbackup.conf file, for instance.
Thanks for any and all help
Roger
|
|
|
|
09-16-2010, 10:50 AM
|
#2
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
I can only answer your first Q:
To wake up the drive, you need to wrap your call to nssbackup in a little bash script that wakes the drive up before calling nssbackup
It's very simple:
Code:
#!/bin/bash
ls /path/to/backup > /dev/null
/path/to/nssbackup options
Name the script whatever you like, make it executable chmod +x /path/to/wrapper and then call it.
http://www.google.com/linux (bookmark that link - it's very useful for all things linux) may help you with your other Q.
|
|
|
|
09-17-2010, 09:29 AM
|
#3
|
|
LQ Newbie
Registered: Nov 2009
Location: Baltimore MD
Distribution: Ubuntu 10.04
Posts: 5
Original Poster
Rep:
|
Tredegar, thanks for this - and it is exactly what I tried as well, thinking to then run that script at a certain time via cron. The failure there? I have to run nssbackup via sudo right now, so here we have a fork to two possible paths: "How to call sudo in a script?" is the first fork, and that would be interesting to know how to do. The second fork is that the nssbackup log file says the nssbackup process is reverting to the user rogerw (me). I wonder if I really do need to be running nssbackup through sudo. For the latter issue, can I just chmod the nssbackup program to rogerw:rogerw and have it run happily without sudo? I guess that would work if all the files it was backing up were accessible by rogerw. Thoughts?
Roger
|
|
|
|
09-17-2010, 09:37 AM
|
#4
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
|
"How to call sudo in a script?"
|
You can't, or shouldn't if you want the backup to run unattended, and keep your system secure.
Backups are generally best run as root anyway (that way all your users can be backed up).
You could run your backup from root's crontab, then it'd be run as root.
I don't use nssbackup, (I just use rsync, which is fast, and easy ) so I can't help you with how it works.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:01 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|