Problems with automatic backup scripts


#1

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


#2

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


#3

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.

[quote]#!/bin/bash
suffix=$(date +%y%m%d)
cd /home/username/.snapshot/nightly.0/
tar -cf /home/username/backups/archives/domain.$suffix.tar domain.com/ [/quote]
That’s the script from the wiki, if you want to add on more folder than just domain.com do it like this:

(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


#4

yep thanks a lot man