LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 08-22-2010, 07:38 PM   #1
fatrat84
LQ Newbie
 
Registered: Aug 2010
Posts: 9

Rep: Reputation: 0
Backup to USB HDD


Hi guys I got this issue relate to doing backups in Linux, I manage to get a backup working every night; it is now stalled under user1, backup.

I manage to connect my usb hdd and gets it working using this link http://www.linuxquestions.org/questi...-point-511917/

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?

many thx
 
Old 08-23-2010, 03:01 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
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
 
Old 08-24-2010, 12:08 AM   #3
fatrat84
LQ Newbie
 
Registered: Aug 2010
Posts: 9

Original Poster
Rep: Reputation: 0
I tried to back up and this is the msg I get.

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.
 
Old 08-24-2010, 07:36 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
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.
 
Old 08-24-2010, 07:46 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
How is your external HDD formatted? If it is FAT32 then there's a limit to the maximum size any file can be (4GB IIRC). I think you may be meeting this limit.
 
Old 08-24-2010, 08:28 PM   #6
fatrat84
LQ Newbie
 
Registered: Aug 2010
Posts: 9

Original Poster
Rep: Reputation: 0
Unhappy

I used this link http://www.ehow.com/how_1000631_hard-drive-linux.html to formatted the usb hdd to ext2

I'm just about to pull my hair out here, I cant figure out how to just get the files to the USB, and I'm new.. I don't even know where to look at for this problem.

and I dont think it's how i formated my hdd, coz I can still manually copy and paste the file into my usb hdd

Slap me around if I missed something obviouse

Please help

Last edited by fatrat84; 08-24-2010 at 08:29 PM.
 
Old 08-25-2010, 04:22 AM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
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 ?
 
Old 08-25-2010, 09:50 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Is there any more information about the input/output error in the /var/log logs such as syslog and messages or whatever your distro uses?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux HDD backup under windows - looking for backup utility SigTerm General 1 01-27-2010 11:54 AM
Replacing HDD in an LVM without any ports left for new HDD, therefor using a USB dock boast Linux - General 0 01-12-2010 09:03 AM
corrupted HDD: need to place backup onto different HDD Cyberman Linux - Desktop 6 09-26-2009 10:51 PM
mirroring hdd to usb hdd with partimage ghetto-betto Ubuntu 3 05-27-2008 04:23 PM
Install directly to HDD from iso on HDD/USB, with out burning cd vivinuthappa DamnSmallLinux 7 11-16-2004 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration