W
willgnosis
Guest
i am very sorry if this has been asked before... i'm sure it has.. but i have searched all over the net looking for an answer and i still cant find it... so somebody pleeeeease help me!
I have a really simple cron job script like this:
cd /var/www/vhosts/
tar -cvzf /backup/myhttpdocs-backup-`/bin/date +\%Y\%m\%d`.tar mywebsite.com.au/httpdocs/
when i run this manually it works fine
but when i run it from my ROOT user in Plesk as a cron task is always creates a file that is just 45 bytes. Why doesn't it work... I am running it as a root user.. so surely i must have permission to access the files?!!! Its driving me nuts.
oh yeah and PS... my /backup folder is chmod 777
the full path to the directory i want to backup is:
/var/www/vhosts/mywebsite.com.au/httpdocs/
and again... IT WORKS when i log in as root user using ssh. So why wouldn't it qork when i run it as a cron task?
I have a really simple cron job script like this:
cd /var/www/vhosts/
tar -cvzf /backup/myhttpdocs-backup-`/bin/date +\%Y\%m\%d`.tar mywebsite.com.au/httpdocs/
when i run this manually it works fine
but when i run it from my ROOT user in Plesk as a cron task is always creates a file that is just 45 bytes. Why doesn't it work... I am running it as a root user.. so surely i must have permission to access the files?!!! Its driving me nuts.
oh yeah and PS... my /backup folder is chmod 777
the full path to the directory i want to backup is:
/var/www/vhosts/mywebsite.com.au/httpdocs/
and again... IT WORKS when i log in as root user using ssh. So why wouldn't it qork when i run it as a cron task?