This is probably a really dumb question, but here goes. I created a backup script for a website i'm working on. The script goes like this:
----------------------------------------------------------------
#!/bin/bash
current_date=`eval date +%m-%d-%G`
default_name="_domainname_backup"
backup_dir="$current_date$default_name"
mkdir $backup_dir
scp -r
user@domain.com:/home/user $backup_dir
tar -cf $backup_dir.tar $backup_dir
gzip $backup_dir.tar
mv $backup_dir.tar.gz domain.com
rm -Rf $backup_dir
-----------------------------------------------------------
when i run the script from the directory (not my home directory), everything works fine. I added the job into kcron to run daily. When i right-click on the task and choose 'run', I get output on my open terminal window that says "permission denied" for all the steps.
The permissions on the directory in which i want to create the file are 755, though even setting them to 777 didn't solve it. The task has to be running as my regular user, and my username does have permission to write to that directory.
I don't want to stick this in root's cron.daily, but I could do that.
any ideas?
-Kevin