Problems with automatic backup scripts....

Problems with automatic backup scripts....

Posted by: dani
Posted on: 2007-01-28 08:12:00

Hello i am using the scripts located here

http://www.wiki.dreamhost.com/index.php/Automatic_Backup#Automatic_FTP_downloading_of_archive

and i have done all the stuff i uploaded the scripts converted them from dos2unix and then tried to run the domain.sh script to test it but i get these errors.



tar: bullseye/logs/bullseyesupport.net/http.3414447/analog/bullseyesupport.net.2006-12.cache: Cannot open: Permission denied
tar: bullseye/logs/bullseyesupport.net/http.3414447/analog/bullseyesupport.net.longterm.cache: Cannot open: Permission denied
tar: bullseye/logs/bullseyesupport.net/http.3414447/analog/bullseyesupport.net.2007-01.cache: Cannot open: Permission denied
tar: bullseye/logs/bullseyesupport.net/http.3414447/analog/bullseyesupport.net.longterm.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/bullseyesupport.net/http.3414447/analog/bullseyesupport.net.2007-01.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/bullseyesupport.net/http.3414447/html/.htpasswd: Cannot open: Permission denied
tar: bullseye/logs/coagulatedrecycles.net/http.3651924/analog/coagulatedrecycles.net.2007-01.cache: Cannot open: Permission denied
tar: bullseye/logs/coagulatedrecycles.net/http.3651924/analog/coagulatedrecycles.net.longterm.cache: Cannot open: Permission denied
tar: bullseye/logs/coagulatedrecycles.net/http.3651924/analog/coagulatedrecycles.net.2007-01.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/coagulatedrecycles.net/http.3651924/analog/coagulatedrecycles.net.longterm.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/coagulatedrecycles.net/http.3651924/html/.htpasswd: Cannot open: Permission denied
tar: bullseye/logs/anblickstudios.com/http.3723447/analog/anblickstudios.com.2007-01.cache: Cannot open: Permission denied
tar: bullseye/logs/anblickstudios.com/http.3723447/analog/anblickstudios.com.longterm.cache: Cannot open: Permission denied
tar: bullseye/logs/anblickstudios.com/http.3723447/analog/anblickstudios.com.2007-01.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/anblickstudios.com/http.3723447/analog/anblickstudios.com.longterm.cache.yesterday: Cannot open: Permission denied
tar: bullseye/logs/anblickstudios.com/http.3723447/html/.htpasswd: Cannot open: Permission denied

Any ideas why... The mysql.sh script i setup works but this one doesn't want to work.

Any help is appreciated thanks a lot

Re: Problems with automatic backup scripts....

Posted by: dani
Posted on: 2007-01-28 08:16:00

Just another note the backup seems to have run but i still get all these permission denied errors...

Re: Problems with automatic backup scripts....

Posted by: matttail
Posted on: 2007-01-28 08:39:00

You're getting these errors because the tar program is not able to read those files to add them to your backup. It's probably a user permission thing with the way DH places the files in your user space. The backup is working just fine though - it's just telling you it can't read those few fies.

I would suggest changing the backup so that it only backups necessary folders like your domain.com folder and anything else in your home directory you might need. The script in the wiki is set to only backup your web-accessible domain files.

In reply to:

#!/bin/bash
suffix=$(date +%y%m%d)
cd /home/username/.snapshot/nightly.0/
tar -cf /home/username/backups/archives/domain.$suffix.tar domain.com/


That's the script from the wiki, if you want to add on more folder than just domain.com do it like this:

In reply to:

tar -cf /home/username/backups/archives/domain.$suffix.tar domain.com/ documents/ scripts/ other/


(I believe that's the right syntax, but I haven't tested it so no promises.)

Hope this helps.



--Matttail
art.googlies.net - personal website

Re: Problems with automatic backup scripts....

Posted by: dani
Posted on: 2007-01-28 09:30:00

yep thanks a lot man

Re: Problems with automatic backup scripts....

Posted by: ardco
Posted on: 2007-01-28 12:22:00

In reply to:

It's probably a user permission thing with the way DH places the files in your user space.


I agree. I also backup log directories, and see similar errors. Most of the files backup just fine.

Tags: permission deniedlogsanalogdreamhostdos2unixwikishautomatic backuphtpasswdautomatic ftpuploaded