Friday, December 16. 2005Changes between development and public directory![]()
I do testing in web development in that way, that the public website is stored in the public_html subdirectory, and the test site is located in develop_html. To see whether there are differences between those two sites, I use the following aliases:
alias changes=’dir=$(pwd|sed -e s:develop:public:); echo diff with $(echo $dir|sed -e s:$HOME:\~:); for file in $(for rcsfile in RCS/.??* RCS/*; do echo $rcsfile|cut -d, -f1; done); do echo “>>> $(basename $file):”; colordiff --no-banner $(basename $file) $dir; done’
That way only files I manage with RCS are checked, and I can do that call from any subdirectory of develop_html.
Posted by Stephan Paukner
in GNU/Linux
at
15:32
| Comments (0)
| Trackbacks (0)
Defined tags for this entry: bash, programming
Thursday, December 1. 2005DVD-RAM for backup![]() I got myself a “Super Multi DVD ReWriter”, namely the LG Electronics GSA-2166D, an external DVD burner using a USB 2.0 interface. I plugged it in and could use it immediately with GNU/Linux thanks to udev and the kernel modules scsi_mod, sr_mod (for SCSI CD-ROM drives) and usb_storage. I want to use DVD-RAM as backup media, and it really works like a charm: I could create an ext2 filesystem on it by simply issuing the command
CODE: # mke2fs /dev/dvdrw
after which I could mount it and use it like a harddisk. The only drawback is when a large amount of data is written, the kernel is still busily writing data for up to 15(!) minutes after the copy process has finished in the user space! Be careful when using such media with autofs. I experienced that when I simply began to copy data to /misc/dvdram without explicitly mounting the media before, autofs reaches its timeout during the transfer, which leads to a currupt filesystem. The manually executed e2fsck failed, all files went into lost+found!
(Page 1 of 1, totaling 2 entries)
|
AboutCalendar
ArchivesCategoriesShow tagged entriesandroid antenna anti-spam apache astronomy austria automobile ballooning bash bluetooth bug career cloud comic cooking crypto cw debian diy dreams education electronics fail fashion finance flickr fuerteventura fun gentoo geography german gnu-linux gnucash google google earth guitar hardware history image processing internet kernel kids language lifestyle linkroll literature ltd machine learning making mallorca mathematics matlab microsoft migration movies munich music nautilus numismatics octave pdf perl philately philosophy phone photo gear photography podcast politics postfix private programming public transport rant religion review salzburg samsung science security shtf social web software statistics storage sustainability symbian tablet time lapse transceiver tv usenet venice video virtualization wordplay work www yahoo youtube
Syndicate This BlogFollow meBookmarks
Powered by |