Automatic Backup - Syntax issues?
Posted by: lwwjr
Posted on: 2006-07-09 06:35:00
I followed matttail's great write-up on automatic backups, but I'm getting an error when I execute the bash:
: No such file or directorycd: /home/larrywhitt/.snapshot/nightly.0/
If I copy and paste that cd command directly, I find the nightly.0 directory without any trouble. Here's my complete script:
#!/bin/bash
suffix=$(date +%y%m%d)
cd /home/larrywhitt/.snapshot/nightly.0/
tar -cf /home/larrywhitt/backups/archives/whisperinghope.$suffix.tar whisperinghope.org/
I'm not familiar with bash scripts, so I hope I'm just doing something stupid.