code logs -> 2007 -> Mon, 23 Apr 2007< code.20070422.log - code.20070424.log >
--- Log opened Mon Apr 23 00:00:35 2007
00:31 ReivSLEP is now known as Reiver
00:51 Thaqui [~Thaqui@Nightstar-25849.jetstream.xtra.co.nz] has joined #code
00:51 mode/#code [+o Thaqui] by ChanServ
01:12 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
02:36 Attilla [~The.Attil@194.72.70.ns-11849] has quit [Quit: brb - restarting]
02:59 Mahal is now known as MahalTaxi
03:01 Reiver is now known as ReivClass
04:36 MahalTaxi is now known as Mahal
04:46 You're now known as TheWatcher
05:07 Thaqui [~Thaqui@Nightstar-25849.jetstream.xtra.co.nz] has quit [Quit: Leaving]
05:10 ReivClass is now known as Reiver
05:31
<@Chalcedon>
can anyone suggest a method of imaging my hard drive? Copying the files is a long and frustrating process.
05:39
<@ToxicFrog>
dd?
05:40
<@ToxicFrog>
But unless the source and target drives are the same size you'll have to resize the filesystem.
05:40
<@ToxicFrog>
Personally, I'd just copy all the files with rsync.
05:44
<@Chalcedon>
rsync?
05:45
<@Mahal>
What're you needing to do, Chalcy?
05:45 * Chalcedon displays her ignorance again
05:45
<@Chalcedon>
I need to back up my hard drive before reformatting it
05:45 * Chalcedon realises she needs to pay a visit to hamilton to borrow her parents XP CD
05:46
<@Mahal>
Ah, I see.
05:46
<@Mahal>
Hrm
05:47
<@Chalcedon>
(note that I need an XP home CD, hence Hamilton and parents)
05:47
<@ToxicFrog>
Rsync is a program for synchronzing files between two computers, over ssh. It can also sync files between two paths on one computer.
05:48
<@ToxicFrog>
Some notable advantages are that it only transfers what it needs to, and it uses checksums to verify that everything copied correctly.
05:48
<@ToxicFrog>
The former meaning that if it gets interrupted, it picks up from where it left off when you run it again, and if you sync and then change something and resync, it only copies the changed files.
05:49
<@Chalcedon>
ah ha.
05:49
<@Chalcedon>
that sounds like exactly what I need.
05:50
<@Chalcedon>
the next question would be how do I get it to work in windows?
05:50
<@Chalcedon>
cygwin?
05:50
<@ToxicFrog>
If you have Cygwin, it comes with rsync.
05:50
<@ToxicFrog>
If not, I can send you rsync.exe and the cygwin DLLs it uses.
05:50
<@Mahal>
And it stillr equires somewhere else to put the files
05:51
<@Chalcedon>
Forjs HD
05:51
<@ToxicFrog>
Mahal: I'm assuming that she does in fact have a second drive to put them on.
05:51
<@Chalcedon>
does Cygwyn need to be installed on both ends?
05:51
<@ToxicFrog>
Umm. I thought the drives were both in the same machine at the moment?
05:52
<@Chalcedon>
no. Sorry, transfer via network
05:52
<@Chalcedon>
I take it this complicates things?
05:52
<@ToxicFrog>
If they're both in the same system (or look like they're both, eg, a windows or NFS network drive), you just need rsync.
05:53
<@ToxicFrog>
If you're doing it over SSH, the remote system needs to be running an sshd and have rsync installed.
05:53
<@Chalcedon>
I can map a network drive fine.
05:53
<@Chalcedon>
at least, I think that's what you're talking about
05:54
<@ToxicFrog>
Yes.
05:54
<@ToxicFrog>
Basically, if you can see both drives from one computer, all you need is rsync on that computer.
05:55
<@ToxicFrog>
You need it on both computers when you /can't/ do that and need to transfer over SSH instead.
05:55 * Vornicus-Latens applies Stoat in Curry Sauce to Chalcy
05:55
<@ToxicFrog>
It will of course be slow, because it'll be copying them over SMB underneath, and SMB is ass-slow.
05:55
<@ToxicFrog>
But at least it won't re-copy anything, and it'll verify all the files.
05:56 * Chalcedon nrom
05:56
<@Chalcedon>
which is a very handy feature
05:57
<@Chalcedon>
I'm happy to leave it copying overnight if necessary. I won't be going to Hamilton before Wednesday anyway
05:57 * ToxicFrog nods
05:57
<@Chalcedon>
the only other thing, is how do I operate rsync?
05:57
<@Chalcedon>
I don't use Cygwin nearly as much as I ought, so I forget how to work it.
06:02
<@ToxicFrog>
rsync -avvh --progress /path/to/source /path/to/dst
06:03
<@ToxicFrog>
Be careful of / on the end of source; 'source' means 'copy the directory source and everything in it'; 'source/' means 'copy everything inside the directory but not the dir itself'
06:03
<@ToxicFrog>
And for the manual: 'man rsync'
06:04
<@Chalcedon>
this is in the bash shell, yes?
06:05
<@ToxicFrog>
Yes.
06:05
<@ToxicFrog>
I can give you the exact command if you'll tell which drives things are on and where you want it saved.
06:05 Forj [~Forj@Nightstar-1013.ue.woosh.co.nz] has joined #code
06:06
<@ToxicFrog>
Aah, Forj.
06:06
<@ToxicFrog>
Have a sizzling weasel on a stick.
06:06
< Forj>
mmm, sticky weasel :)
06:07
<@Chalcedon>
well I want to copy C:\ to I:\
06:08
<@ToxicFrog>
In that case: rsync -avvh --progress /cygdrive/c/ /cygdrive/i/
06:09
<@Chalcedon>
uh
06:09
<@Chalcedon>
how do I escape the manual?
06:10
<@Chalcedon>
I didn't realise it was that long
06:10
<@ToxicFrog>
q
06:10 McMartin [~mcmartin@Nightstar-8368.dsl.pltn13.sbcglobal.net] has quit [Quit: Testing new Ubuntu's driver support]
06:10
<@ToxicFrog>
Scrolling to the bottom won't exit it anyways.
06:10
<@ToxicFrog>
q is exit, > is bottom, < is top, pageup/pagedown and up/down move by screens and lines respectively, / is search down, ? is search up.
06:11 * Chalcedon nods
06:12
<@Chalcedon>
I typed that and it gave me a whole speel on instructions and the program, then returned the $ (as in ready for new command)
06:13
<@Chalcedon>
I can't believe it copied that quickly, so is it working, or did I do something wrong?
06:13
<@ToxicFrog>
...er.
06:13
<@ToxicFrog>
Oh.
06:13
<@ToxicFrog>
Try -avv instead of -avvh
06:13 * ToxicFrog forgot that the Cygwin version is a bit behind the Linux one and doesn't support -h
06:14
<@Chalcedon>
ah
06:14
<@Chalcedon>
Windows tried to block it but I told it to go away
06:14
<@ToxicFrog>
It handles local copies, IIRC, by spawning a seperate copy of itself and then talking to itself over the network.
06:14 * Chalcedon hugs TF and supplies white chocolate and raspberry muffins
06:14
<@ToxicFrog>
Thus allowing it to use the same code as if it were doing a networked copy.
06:14
<@Chalcedon>
hee
06:15
<@Raif>
...
06:15
<@Raif>
That's actually kinda gross.
06:15
<@Chalcedon>
is it supposed to tell me that files have vanished?
06:15
<@Raif>
Cool, but gross.
06:15 * Chalcedon eyes Raif
06:15
<@ToxicFrog>
Raif: no it isn't. It's a perfectly normal technique.
06:16
<@ToxicFrog>
Especially when you have to run on a system that doesn't have UNIX domain sockets.
06:16
<@ToxicFrog>
Chalcedon: vanished?
06:16
<@ToxicFrog>
Wha?
06:16
<@Chalcedon>
file has vanished: "/cygdrive/c/cygwin/proc"
06:16
<@Raif>
hehehe
06:16
<@Chalcedon>
most of them are wma's
06:17
<@Chalcedon>
(thus I'm not very worried)
06:18
<@ToxicFrog>
Oh gods.
06:18
<@ToxicFrog>
I almost forgot.
06:19
<@ToxicFrog>
Interrupt that with ctrl-c
06:19
<@Chalcedon>
?
06:19
<@ToxicFrog>
The rsync. Interrupt it.
06:19
<@Chalcedon>
I did
06:19
<@Chalcedon>
the ? was for what did you forget?
06:19
<@ToxicFrog>
Exclusion listing.
06:20
<@Chalcedon>
?
06:20
<@ToxicFrog>
In particular, /cygdrive/c/cygwin/cygdrive needs to be excluded from the copy.
06:20
<@Chalcedon>
otherwise it will die horribly?
06:20
<@ToxicFrog>
As otherwise it'll try to copy /cygdrive/c/cygwin/cygdrive/c
06:20
<@ToxicFrog>
And then /cygdrive/c/cygwin/cygdrive/c/cygwin/cygdrive/c
06:20
<@ToxicFrog>
You get the idea.
06:20
<@Chalcedon>
and that could become ....yes
06:20
<@Chalcedon>
so how do I exclude that?
06:21
<@ToxicFrog>
One moment, consulting the manual
06:22 * Chalcedon hugs TF
06:22
<@ToxicFrog>
rsync -avv --progress --exclude=/cygdrive/c/cygwin/cygdrive /cygdrive/c/ /cygdrive/i/
06:23 * Chalcedon hugs TF
06:23
<@Chalcedon>
you're a life saver :) I'd probably spend hours trying to figure out how to do this myself and still get it wrong
06:23
<@ToxicFrog>
Aha. The "file has vanished" stuff is related to an issue with non-ASCII filenames on XP with recent Cygwin builds.
06:24
<@ToxicFrog>
Specifically, stuff with non-ASCII characters in the filename will show up in readdir() but stat() will fail, so it sees the file in the directory listing when it goes to actually copy it it gets nothing back.
06:25
<@Chalcedon>
thus the file vanishes
06:25
<@ToxicFrog>
Yeah.
06:26
<@ToxicFrog>
From rsync's point of view, the file has disappeared between looking at the directory and looking at the file itself.
06:26
<@Chalcedon>
those files have funny boxes in the file name, thus it's highly unlikely anything I'm worried about will get missed like this.
06:26 * Chalcedon nods
06:27
<@ToxicFrog>
Yeah, those are non-ASCII characters that it's having trouble rendering.
06:27 * Chalcedon nods
06:27
<@Chalcedon>
it's also not a problem, thankfully
06:28
<@ToxicFrog>
Alright then.
06:28 * Chalcedon hugs TF
06:29 * ToxicFrog huggles Chalcy
06:43 McMartin [~mcmartin@Nightstar-6038.dsl.pltn13.sbcglobal.net] has joined #code
06:43 mode/#code [+o McMartin] by ChanServ
10:11 Mahal is now known as MahalBed
10:30 Chalcedon is now known as ChalcyZzz
12:36 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
12:36 mode/#code [+o gnolam] by ChanServ
15:45 GeekSoldier [~Rob@Nightstar-2534.pools.arcor-ip.net] has joined #code
16:12
< MyCatVerbs>
CPS fucks with my brain, quite royally.
16:12
< MyCatVerbs>
Points-free programming and eta reduction are hilarious.
17:02 Reiver is now known as ReivSLEP
17:16 You're now known as TheWatcher[afk]
17:17 GeekSoldier_ [~Rob@Nightstar-3666.pools.arcor-ip.net] has joined #code
17:18 GeekSoldier [~Rob@Nightstar-2534.pools.arcor-ip.net] has quit [Killed (NickServ (GHOST command used by GeekSoldier_))]
17:18 GeekSoldier_ is now known as GeekSoldier
17:34 MyCatVerbs is now known as MyCatFoods
18:27 You're now known as TheWatcher
18:36
<@ToxicFrog>
String interpolation library is fifteen lines long.
18:36
<@ToxicFrog>
Although it will probably get longer when I need to add support for multiple arguments.
18:37
< GeekSoldier>
in lua?
18:37
<@ToxicFrog>
Yes.
18:37
< GeekSoldier>
sweetness.
18:37
<@ToxicFrog>
It supports both ${field} and ${function:arg} expansion.
19:29 AnnoDomini [~farkoff@Nightstar-29249.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:30 KBot [~karma.bot@Nightstar-29201.neoplus.adsl.tpnet.pl] has joined #Code
19:30 KarmaBot [~karma.bot@Nightstar-29249.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
19:31 KBot is now known as KarmaBot
19:34 MyCatFoods is now known as MyCatVerbs
19:35 AnnoDomini [~farkoff@Nightstar-29201.neoplus.adsl.tpnet.pl] has joined #Code
19:35 mode/#code [+o AnnoDomini] by ChanServ
20:52 GeekSoldier [~Rob@Nightstar-3666.pools.arcor-ip.net] has left #code []
21:22 MahalBed is now known as Mahal
22:06 You're now known as TheWatcher[T-2]
22:07
<@McMartin>
http://ziff.net/404/404.htm
22:09 You're now known as TheWatcher[zZzZ]
22:16 * AnnoDomini chuckles.
22:19 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
22:50 Syloq is now known as Syloqs-AFH
--- Log closed Tue Apr 24 00:00:35 2007
code logs -> 2007 -> Mon, 23 Apr 2007< code.20070422.log - code.20070424.log >