Gwailo
B.A. Economics (Hon)
My case: I have a firewire external disk, which is noisy (fan) that I use for backup. I don't want to leave it on 24/7 and use a cronjob to copy stuff because i can't leave it on all the time.
What I'd ideally like to do is make a terminal command alias that does something like this:
<CODE>
mkdir /volumes/firedisk/backup/[INSERT CURRENT DATE]
cp -r ~/* /volumes/firedisk/backup/[CURRENT DATE]/
cp -r /library/webserver/* /volumes/firedisk/backup/[CURRENT DATE]
</CODE>
Is it possible to bind a command like that, or do i need to use a PERL script; BTW I don't know jack all about PERL. So far i haven't come across an instance in Linux where you can insert nested functions at the command line, just consecutive (with the pipe, like ls | grep blah).
Thanks a bunch!
What I'd ideally like to do is make a terminal command alias that does something like this:
<CODE>
mkdir /volumes/firedisk/backup/[INSERT CURRENT DATE]
cp -r ~/* /volumes/firedisk/backup/[CURRENT DATE]/
cp -r /library/webserver/* /volumes/firedisk/backup/[CURRENT DATE]
</CODE>
Is it possible to bind a command like that, or do i need to use a PERL script; BTW I don't know jack all about PERL. So far i haven't come across an instance in Linux where you can insert nested functions at the command line, just consecutive (with the pipe, like ls | grep blah).
Thanks a bunch!