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 |
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 |
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. |
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.
|
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.
|
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 |
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 ? |
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?
|
All times are GMT -5. The time now is 01:56 PM. |