Linux - SoftwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.