Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Backup!
PostPosted: Wed Dec 31, 2008 11:06 
User avatar
making out to faces of death

Joined: 1st Apr, 2008
Posts: 2686
Location: Sadville
I have a NAS doodad, a WD MyBook World Edition. It sits plugged into my router (ethernet) and I fill it with crap (raw photo files, software installation exes and some meeja).

I probably should back it up onto a second hard drive. I have some spares lying around (USB ones) and the MyBook has a USB socket in it which I believe will let it access a USB drive plugged in there.

So, I could just drag/drop in windows or os x, I guess, or run some backup program, but I think these would involve the files flittering over to my pc then back again in some convoluted way because of how file copies work on the desktop.

I do have ssh access to my MyBook (which I set up so I could put ushare on it) so I am thinking some kind of unix script to do some simple copy could do it. Getting more fancy, maybe one of those "cron" things.

It's been over 12 years since I was a unix geek of any kind, so I can't remember all the commands, nor especially the switches, flags, pipes etc to do something like this. So if any unix spods know how to copy the stuff from hd0/usr/share/ (or whatever) to usb0/blah/ or whatever that would be a slice of fried gold I think. :munkeh:

_________________
Me flickr
Image


Top
 Profile  
 
 Post subject: Re: Backup!
PostPosted: Wed Dec 31, 2008 13:04 
User avatar
Heavy Metal Tough Guy

Joined: 31st Mar, 2008
Posts: 6587
Well

Code:
cp -r /path/of/stuff/now /path/of/backup/dest


Should do it, if all you want it to copy stuff in one big chunk. Adding "-u" switch will mean that stuff only gets copied over if it's newer than what is in the backup dir, which might be useful if you;re doing it every night.


Top
 Profile  
 
 Post subject: Re: Backup!
PostPosted: Thu Jan 01, 2009 22:41 
User avatar
making out to faces of death

Joined: 1st Apr, 2008
Posts: 2686
Location: Sadville
Ta! :D

_________________
Me flickr
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Columbo, Majestic-12 [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC. RIP, Dimmers.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.