phpbu icon indicating copy to clipboard operation
phpbu copied to clipboard

Incremental Backup TAR Compression Restore

Open mfmaut opened this issue 2 years ago • 0 comments

Hi!

I have a conf file with 2 Backups, one MySQL Dump and one Incremental Directory Backup. When I run --restore in the directories i get "backup requires exactly one source config".

Is there even a --restore option for incremental backups? And if yes, should I set up the Config File for MySQL separate to avoid the Error above?

My current conf File:


   /<backups>
     /<backup name="mysqldump">
       /<source type="mysqldump">
       /<option name="databases" value="xxxxx" />
       /<option name="user" value="xxxxx" />
       /<option name="password" value="xxxxx" />
         /<option name="host" value="localhost" />
  /<option name="port" value="3306" />
       /</source>
       /<target dirname="/home/onedrive/mysql-backup/" filename="mysqldump-%Y%m%d-%H%i.sql"  compress="gzip" />
     /</backup>
     /<backup name="xxxxxxxx">
       /<source type="tar">
       /<option name="path" value="/home/www/xxxxxxx/" />
       /<option name="incrementalFile" value="/home/onedrive/metadata.snar" />
       /<option name="ignoreFailedRead" value="true"/>
       /<option name="exclude" value="cache,var/cache,home/www/lxxxxxxxxx.com/var/cache/"> /</option>
       /</source>
       /<target dirname="/home/onedrive/" filename="files-%Y%m%d-%H%i.tar"  compress="gzip" />
     /</backup>
  /<backups>

Even when i delete the MySQL Backup from the Conf i get those Error

thanks :)

mfmaut avatar Feb 03 '23 18:02 mfmaut