You do not get an error (yet). You get the non-verbose result of running UNiTE with this XML file. You need to use the --verbose --debug=1 switches in the command line to see where the problems are.
I can see by a quick glance that your XML file is both malformed and has sections which do not make sense. This line is wrong, it means nothing:
<package from="site"></package>
As you can read in our documentation, the only valid value for the from attribute is "remote" if you want UNiTE to perform a remote backup and download the resulting backup archive. There is no such thing as from="site". The correct form is something like:
<package>your_backup_archive_name.jpa</package>
which tells UNiTE to use a file already present in the same folder as its XML configuration file.
The following line is wrong
<email>[email protected]<;/email>
The semicolon makes it invalid XML. It should read:
<email>[email protected]</email>
The following two lines are invalid XML as well:
<homeurl>undefined
<livesite>undefined
The correct approach is to NOT include them if they are not meant to have values. That said, I believe you got these lines by pasting URLs to our site's editor and your XML file does not look like that.
All the FTP keys you have set, they are not used to retrieve the backup archive. They are used to set up Joomla's FTP layer. So I'm pretty sure you don't want them to be there either.
The following line is also wrong (random semicolons):
<emailto>[email protected]<;/emailto>
It should read
<emailto>[email protected]</emailto>
Now, if I am guessing correctly, what you want to do is retrieve the latest backup from your server over FTP and restore it with UNiTE. UNiTE cannot retrieve the latest backup. You can either use the ftp command line client or Akeeba Remote CLI. In both cases you need a shell script.
Here is a sample script which uses Akeeba Remote CLI and UNiTE (plus the standard sed, awk and tr Linux commands) to find the latest backup on a site, download it, change UNiTE's XML configuration file to reference this downloaded file and run UNiTE to restore it. All you need is a valid UNiTE XML configuration file and editing the script file's Configuration section. Do remember to enable the JSON API on your site for this script to work.
#!/usr/bin/env/bash
########## Configuration ##########
# The URL to your site. No trailing slash
SITE_URL=https://www.example.com
# Your site's Secret Key
SITE_SECRET=my-really-very-secret-key
# The name of the UNiTE XML file you will use to restore the downloaded file
RESTORATION_XML=site.xml
########## DO NOT EDIT BELOW THIS LINE ##########
# Get the latest backup ID
LATEST_BACKUP_ID=`php remote.phar --from=0 --to=0 listbackups -m --host=$SITE_URL --secret=$SITE_SECRET | tail -n 1 | awk -F'|' '{printf "%s", $2}' | tr -d "[:space:]"`
[[ -z "$LATEST_BACKUP_ID" ]] && exit 127
# Download the latest backup using HTTP
CURDIR=`pwd`
DOWNLOADED_FILE=`php remote.phar download -m --id=$LATEST_BACKUP_ID --dlmode=http --dlpath=$CURDIR --host=$SITE_URL --secret=$SITE_SECRET | grep INFO | awk -F'|' '{printf "%s", $2}' | awk -F' ' '{printf "%s", $3}'`
[[ -z "$DOWNLOADED_FILE" ]] && exit 128
# Update the XML file with the name of the downloaded file
sed "s/<package>.*<\/package>/<package>$DOWNLOADED_FILE<\/package>/" site.xml -i
# Run UNiTE verbosely
php unite --verbose $RESTORATION_XML
You can save this as a shell script file e.g. download-and-restore.sh
and change its permissions to 0755 e.g. chmod 0755 download-and-restore.sh
. You can then run it directly or use it with CRON jobs.
Regarding cleaning up after itself, you should use <deletePackage>1</deletePackage>
in your XML configuration file.
Remember, UNiTE is a tool in your toolchain. It is not a toolchain by itself. Granted, it has remote backup and download from S3 features but these date back to 2010 when there was no Akeeba Remote CLI and no easy to use Amazon S3 command line client. That's why I never added any more all-in-one features. There was no point. You can always combine the tools you have to do things that are impossible with a monolithic mega-tool.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!