Thanks everyone! I'm eagerly waiting till 3 pm to see if it works. Andrew Glover wrote:
if [ -f /home/jenny/cwp/ ]; then
if [ -d /home/jenny/cwp/ ]; then
Ah! I wondered what the -f was. Ta. Adam Bower wrote:
tar -czf /backups/cwpbak.tar.gz /home/jenny/cwp/
Missed out the gz. Damn.And the wrong way round! Thanks Adam I've left the o-reilly bible at home this week, it's a hassle to transport between home and work on the bike, could do with two copies really.
Shall I share my awful moment with you all? Trying to find the right command to copy a directory to another directory, I went to clear the second directory for a second try. So i typed in rm -r ./* Except - you've guessed what i omitted in my haste - the full stop. Ohmygod. Luckily for me I was not superuser and the puzzled linuxbox asked me if I was sure i wanted to delete Games or something, at which point i woke up and lunged for the kill button. As if i haven't read in my O'R book to sit on my hands when i type a command for this very reason? Hee hee. I'm still pale and shaking. Anyone else ever done this? Jenny.