bit of a mess up

Associate
Joined
19 Jul 2006
Posts
1,847
have a linux machine running suse that i was trying to use as backup machine
i was running a script on there
Code:
#/bin/sh
mkdir - p /backups/
cd /backups/
scp -r 10.0.6.22:/temp/backups

the script work fine and just bulls across the data.
thing is the data been pulled across is not to big for the hd on the box. how would i go about connecting an external hd and then modifying the script?

TIA
 
yeah sorry typo's in there and running as root. The box should be running all time and located in the office just for this job.
Cheers .walls, i realise the first line is redundent so i ll get rid of that. Can you explane this

plug in usb drive
Code:

$ dmesg | tail | grep /dev/

will tell you the device node for the external disk
Code:

# mount /$DEVICE /backups

- where $DEVICE is the /dev/XXXX bit from the previous command - will mount the drive (if the external drive is ntfs, that will mount read-only - if it's ntfs, then use
Code:

# mount /dev/$DEVICE /backups -t ntfs-3g

and off you go.

is the external hd now becoming the backup directory or is it located with in there?

TIA
 
Back
Top Bottom