Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Now the question is... how do I get the file into the portable HDD, I mean right now, I can do it manually every day, but I was hoping I can do it automatically I hearing people telling me using a script or some sort? Can someone give me some sort of idea of how to get it started?
Well how are you doing the backup ? Just add a line to the end of the script that copies the file to the USB hard drive. Or using udev rules, make a rule that runs a script every time you plug the disk in. The script copies the file across. http://reactivated.net/writing_udev_...l#external-run
Mon Aug 23 23:00:29 EST 2010 Backup Started
cp: cannot creat regular file '/media/disk/xxxxxbackup.tar.z' Input/output error
Mon Aug 23 23:14:29 EST 2010 Backup completed.
I'm 100% sure that the usb device is mounted and it is working, I can write to and from it. But could this me mount point permsion issue? Because I only test it as root, and I normally just go in as root, but I set up the back up in user1. I know I'm kinda stupid.. don't know why I did this.
A permissions problem should not result in an an input/output error message. There may be more information about the input/output error in the /var/log logs such as syslog and messages or whatever your distro uses.
You still haven't told us what you did to start the backup when it fails. What command are you using ? Is it a script that starts it off ? When does the backup get run ?
You just said that you can copy and paste the files across, so how do you do it when it fails ?
What did you do that gave the output in post #3 ?