Automatic Backup (matttail) stopped working


#1

I followed this tutorial, but are getting some problems. I see at the top of the tutorial there is a warning that I may no longer work…would that cause the issue?

http://wiki.dreamhost.com/Automatic_Backup#Backup_ALL_Domains

the domain has been replaced with ‘DOMAIN’ and user replaced with user

Starting Domain backups
Starting DOMAIN.com.au
tar: DOMAIN.com.au: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
Finished DOMAIN.com.au
—Finished all domain backups…

My script is this:

#!/bin/bash
suffix=$(TZ=Australia/Brisbane date +20%y-%m-%d_%H.%M)
domains=( “DOMAIN.com.au”)
cd /home/user/.snapshot/nightly.0/
echo Starting Domain backups
for domain in ${domains[@]}

do
echo Starting ${domain}
tar -cf /home/user/backups/archives/domain/${domain}.$suffix.tar ${domain}/
echo Finished ${domain}
done
echo —Finished all domain backups…
echo

Am I doing something wrong? Thanks for any help.


#2

New servers no longer have a .snapshot directory. If you’ve recently been moved to a different server (as I have), you’ll need to make some changes.

Change the “cd /home/user/.snapshot/nightly.0/” to just plain ol’ “cd /home/USER/”

That way instead of pulling your data from the nightly snapshot, you’re pulling it from the live site. Technically, NetApp .snapshots are just anything that’s changed from the current live site, like a diff. Pulling from your live site still works well.

-Scott


#3

sdayman,

Thank you so much. That has fixed the problem. You’re right - I was moved to a different server recently.

I didn’t realise the script was pulling the data from .snapshot - I thought that it was just using that directory as a temporary storage place.

Thank you again.


#4

32 to 64 bit? Noticed the vastly superior response when dealing with files?

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

I haven’t noticed much of a change. My stuff always worked, and it still does. My websites aren’t displaying a “NOW! 64 BIT!” banner. Maybe they’re a bit snappier now, but that’s about it.

-Scott